Skip to content

Commit 9b8a11e

Browse files
anderssonAndy Gross
authored andcommitted
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 <[email protected]> Tested-by: Chris Lew <[email protected]> Tested-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Signed-off-by: Andy Gross <[email protected]>
1 parent 29ff62f commit 9b8a11e

File tree

4 files changed

+933
-0
lines changed

4 files changed

+933
-0
lines changed

drivers/soc/qcom/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ config QCOM_PM
3535
modes. It interface with various system drivers to put the cores in
3636
low power modes.
3737

38+
config QCOM_QMI_HELPERS
39+
tristate
40+
depends on ARCH_QCOM
41+
help
42+
Helper library for handling QMI encoded messages. QMI encoded
43+
messages are used in communication between the majority of QRTR
44+
clients and this helpers provide the common functionality needed for
45+
doing this from a kernel driver.
46+
3847
config QCOM_RMTFS_MEM
3948
tristate "Qualcomm Remote Filesystem memory driver"
4049
depends on ARCH_QCOM

drivers/soc/qcom/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ obj-$(CONFIG_QCOM_GLINK_SSR) += glink_ssr.o
33
obj-$(CONFIG_QCOM_GSBI) += qcom_gsbi.o
44
obj-$(CONFIG_QCOM_MDT_LOADER) += mdt_loader.o
55
obj-$(CONFIG_QCOM_PM) += spm.o
6+
obj-$(CONFIG_QCOM_QMI_HELPERS) += qmi_helpers.o
7+
qmi_helpers-y += qmi_encdec.o
68
obj-$(CONFIG_QCOM_RMTFS_MEM) += rmtfs_mem.o
79
obj-$(CONFIG_QCOM_SMD_RPM) += smd-rpm.o
810
obj-$(CONFIG_QCOM_SMEM) += smem.o

0 commit comments

Comments
 (0)