Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0954330 authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

msm: mhi_dev: Add MHI driver snapshot



Modem host interface (MHI) driver is used by clients
to transfer data between host and device over PCIe
end point driver. Software clients include QTI and
software IP to setup data call and initiate data
transfer. Driver interfaces with IPA, end point PCIe
for data transfer. Add a callback for kernel clients
to receive notification once the software channel
for which the client has registered has opened/closed.

This diff is taken as of msm-3.18
'commit <18d7487> ("Merge "msm: ipa: Fix to check only
reset IPA stats can have data as NULL"")'.

Change-Id: I3dd54121d7dde6ddc6138da8d2ab9802452d4681
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent 85a10b57
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -19,6 +19,18 @@ Required properties:
  - qcom,mhi-ep-msi: End point MSI number.
  - qcom,mhi-version: MHI specification version supported by the device.

Optional property:
  - qcom,use-ipa-software-channel: If property is present use IPA hardware
		accelerated path for MHI software channel data transfers
		between host and device.
  - qcom,mhi-config-iatu: If property is present map the control and data region
		between host and device using iatu.
  - qcom,mhi-interrupt: If property is present register for mhi interrupt.
  - qcom,mhi-local-pa-base: The physical base address on the device used by the
		MHI device driver to map the control and data region with the
		MHI driver on the host. This property is required if iatu
		property qcom,mhi-config-iatu is present.

Example:

	mhi: qcom,msm-mhi-dev {
+1 −1
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@ config GPIO_USB_DETECT

config MSM_MHI_DEV
        tristate "Modem Device Interface Driver"
	depends on EP_PCIE && IPA
	depends on EP_PCIE && IPA3
        help
          This kernel module is used to interact with PCIe Root complex
          supporting MHI protocol. MHI is a data transmission protocol
+1 −0
Original line number Diff line number Diff line
@@ -4,3 +4,4 @@ obj-y += mhi.o
obj-y += mhi_ring.o
obj-y += mhi_uci.o
obj-y += mhi_sm.o
obj-y += mhi_dev_net.o
Loading