Skip to content

Commit 842891b

Browse files
committed
samples: Introduce Qualcomm QMI sample client
Introduce a sample driver that register for server notifications and spawn clients for each available test service (service 15). The spawned clients implements the interface for encoding "ping" and "data" requests and decode the responses from the remote. Acked-By: Chris Lew <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 1fb82ee commit 842891b

File tree

4 files changed

+633
-1
lines changed

4 files changed

+633
-1
lines changed

samples/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ config SAMPLE_KDB
6262
Build an example of how to dynamically add the hello
6363
command to the kdb shell.
6464

65+
config SAMPLE_QMI_CLIENT
66+
tristate "Build qmi client sample -- loadable modules only"
67+
depends on m
68+
depends on ARCH_QCOM
69+
select QCOM_QMI_HELPERS
70+
help
71+
Build an QMI client sample driver, which demonstrates how to
72+
communicate with a remote QRTR service, using QMI encoded messages.
73+
6574
config SAMPLE_RPMSG_CLIENT
6675
tristate "Build rpmsg client sample -- loadable modules only"
6776
depends on RPMSG && m

samples/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ trace_events/ livepatch/ \
44
hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/ \
55
configfs/ connector/ v4l/ trace_printk/ blackfin/ \
6-
vfio-mdev/ statx/
6+
vfio-mdev/ statx/ qmi/

samples/qmi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
obj-$(CONFIG_SAMPLE_QMI_CLIENT) += qmi_sample_client.o

0 commit comments

Comments
 (0)