Skip to contentSkip to conversation

bus: mhi: Add MHI PCI support for WWAN modems

PATCH Superseded Loic Poulain 1 participant 1 message Sep 23, 2020

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 bus: mhi: Add MHI PCI support for WWAN modems

This is a generic MHI-over-PCI controller driver for MHI only devices such as QCOM modems. For now it supports registering of Qualcomm SDX55 based PCIe modules. The MHI channels have been extracted from mhi downstream driver.

This driver is for MHI-only devices which have all functionnalities exposed through MHI channels and accessed by the corresponding MHI device drivers (no out-of-band communication).

---
v2: - remove useless delay.h include
- remove over-logging on error
- remove controller subdir
- rename to mhi_pci_modem.c
- Fix mhi_pci_probe exit path on error
- expand module description
- drop module version

 drivers/bus/mhi/Kconfig         |   8 +
 drivers/bus/mhi/Makefile        |   2 +
 drivers/bus/mhi/mhi_pci_modem.c | 313 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 323 insertions(+)
 create mode 100644 drivers/bus/mhi/mhi_pci_modem.c
drivers/bus/mhi/Kconfig +8 -0
index e841c10..300b2db 100644
@@ -20,3 +20,11 @@ config MHI_BUS_DEBUG
 	  Enable debugfs support for use with the MHI transport. Allows
 	  reading and/or modifying some values within the MHI controller
 	  for debug and test purposes.
+
+config MHI_BUS_PCI_MODEM
+	tristate "MHI WWAN modem PCI controller driver"
+	depends on MHI_BUS
+	depends on PCI
+	help
+	  This driver provides PCI controller driver for MHI WWAN modem
+	  devices such as Qualcomm SDX55 based PCIe modems.
drivers/bus/mhi/Makefile +2 -0
index 19e6443..94ca2aa 100644
@@ -1,2 +1,4 @@
 # core layer
 obj-y += core/
+
+obj-$(CONFIG_MHI_BUS_PCI_MODEM) := mhi_pci_modem.o
drivers/bus/mhi/mhi_pci_modem.c new file +313 -0

313 lines not on this page · raw message

Signature · 1 line
2.7.4