aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-helpers-qmi.c
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@linaro.org>2020-12-16 15:11:48 +0100
committerLoic Poulain <loic.poulain@linaro.org>2021-04-21 12:53:16 +0200
commit6db2e8f04da458488c374f1a6f6979ce7fe9b67d (patch)
treeb79d29dfb2b11fa10f53a3df0a2db26dcc5473af /src/mm-modem-helpers-qmi.c
parentb1db6527cf9d4801e48dfe6e9fe8124532269159 (diff)
base: Add support for wwan subsystem
Add support for the Linux wwan subsystem that started to expose control channel as character devices (e.g. /dev/wwan0p1MBIM...). Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Diffstat (limited to 'src/mm-modem-helpers-qmi.c')
-rw-r--r--src/mm-modem-helpers-qmi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mm-modem-helpers-qmi.c b/src/mm-modem-helpers-qmi.c
index a17e14ad..6e3c5008 100644
--- a/src/mm-modem-helpers-qmi.c
+++ b/src/mm-modem-helpers-qmi.c
@@ -1562,6 +1562,13 @@ mm_port_subsys_to_qmi_endpoint_type (MMPortSubsys subsys)
case MM_PORT_SUBSYS_RPMSG:
case MM_PORT_SUBSYS_QRTR:
return QMI_DATA_ENDPOINT_TYPE_EMBEDDED;
+ /* The WWAN subsystem abstracts the underlying transport bus, and so
+ * endpoint type can not be deducted from that. This function should
+ * then be revisited, but in practice, only MHI/PCI modem ports are
+ * exposed through the WWAN subsystem for now.
+ */
+ case MM_PORT_SUBSYS_WWAN:
+ return QMI_DATA_ENDPOINT_TYPE_PCIE;
case MM_PORT_SUBSYS_UNKNOWN:
case MM_PORT_SUBSYS_TTY:
case MM_PORT_SUBSYS_NET: