]> git.baikalelectronics.ru Git - kernel.git/commit
bus: mhi: ep: Add support for registering MHI endpoint controllers
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Fri, 26 Nov 2021 13:45:24 +0000 (19:15 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 4 Apr 2022 04:47:50 +0000 (10:17 +0530)
commitbae9ae03b0b82afd3a47c888f7a60bdf5ffa4e8d
treec3913587e8625bd8493f473defb93fd8986847bf
parent6d94017b7b59bab528be97be158d0d602982e3a6
bus: mhi: ep: Add support for registering MHI endpoint controllers

This commit adds support for registering MHI endpoint controller drivers
with the MHI endpoint stack. MHI endpoint controller drivers manage
the interaction with the host machines (such as x86). They are also the
MHI endpoint bus master in charge of managing the physical link between
the host and endpoint device. Eventhough the MHI spec is bus agnostic,
the current implementation is entirely based on PCIe bus.

The endpoint controller driver encloses all information about the
underlying physical bus like PCIe. The registration process involves
parsing the channel configuration and allocating an MHI EP device.

Channels used in the endpoint stack follows the perspective of the MHI
host stack. i.e.,

UL - From host to endpoint
DL - From endpoint to host

Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/Kconfig
drivers/bus/mhi/Makefile
drivers/bus/mhi/ep/Kconfig [new file with mode: 0644]
drivers/bus/mhi/ep/Makefile [new file with mode: 0644]
drivers/bus/mhi/ep/internal.h [new file with mode: 0644]
drivers/bus/mhi/ep/main.c [new file with mode: 0644]
include/linux/mhi_ep.h [new file with mode: 0644]