Skip to contentSkip to conversation

bus: mhi: Add MHI PCI support for WWAN modems

PATCH Superseded Loic Poulain 1 participant 1 message Oct 9, 2020

Subsystems (2)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 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
v3: - Rename to mhi_pci_generic
- Add hardware accelerated IP channel (IPA)
- Added fw/edl names for sdx55m
v4: - Rename MHI channel macros to UL/DL
- Reserve MSI 0 as dedicated BHI vector
- Increase IP_HW0 elements to 128 (max)

 drivers/bus/mhi/Kconfig           |   9 ++
 drivers/bus/mhi/Makefile          |   3 +
 drivers/bus/mhi/mhi_pci_generic.c | 331 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 343 insertions(+)
 create mode 100644 drivers/bus/mhi/mhi_pci_generic.c
drivers/bus/mhi/Kconfig +9 -0
index e841c10..daa8528 100644
@@ -20,3 +20,12 @@ 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_GENERIC
+	tristate "MHI PCI controller driver"
+	depends on MHI_BUS
+	depends on PCI
+	help
+	  This driver provides Modem Host Interface (MHI) PCI controller driver
+	  for devices such as Qualcomm SDX55 based PCIe modems.
+
drivers/bus/mhi/Makefile +3 -0
index 19e6443..d1a4ef3 100644
@@ -1,2 +1,5 @@
 # core layer
 obj-y += core/
+
+obj-$(CONFIG_MHI_BUS_PCI_GENERIC) := mhi_pci_generic.o
+
drivers/bus/mhi/mhi_pci_generic.c new file +331 -0

331 lines not on this page · raw message

Signature · 1 line
2.7.4