soc: qcom: Introduce QMI encoder/decoder
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 5 Dec 2017 17:43:06 +0000 (09:43 -0800)
committerAndy Gross <andy.gross@linaro.org>
Wed, 20 Dec 2017 21:38:34 +0000 (15:38 -0600)
commit9b8a11e82615274d4133aab3cf5aa1c59191f0a2
tree46d63ee16127074c9e2bdf30f4cac6544afdd60f
parent29ff62f7db108854cd98f5cdc92d15ccb37e81d1
soc: qcom: Introduce QMI encoder/decoder

Add the helper library for encoding and decoding QMI encoded messages.
The implementation is taken from lib/qmi_encdec.c of the Qualcomm kernel
(msm-3.18).

Modifications has been made to the public API, source buffers has been
made const and the debug-logging part was omitted, for now.

Acked-by: Chris Lew <clew@codeaurora.org>
Tested-by: Chris Lew <clew@codeaurora.org>
Tested-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/Kconfig
drivers/soc/qcom/Makefile
drivers/soc/qcom/qmi_encdec.c [new file with mode: 0644]
include/linux/soc/qcom/qmi.h [new file with mode: 0644]