bus: mhi: core: Add support for registering MHI controllers
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 20 Feb 2020 09:58:40 +0000 (15:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Mar 2020 06:41:04 +0000 (07:41 +0100)
commit0cbf260820fa780a336e4a08cce1f81cd66a7ac1
treef93c84a616f2f32d9d0d6596299443196fc0b16e
parent9435dc3b5e62557eea57cea922020ab3a41aaf7b
bus: mhi: core: Add support for registering MHI controllers

This commit adds support for registering MHI controller drivers with
the MHI stack. MHI controller drivers manages the interaction with the
MHI client devices such as the external modems and WiFi chipsets. They
are also the MHI bus master in charge of managing the physical link
between the host and client device.

This is based on the patch submitted by Sujeev Dias:
https://lkml.org/lkml/2018/7/9/987

Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
[jhugo: added static config for controllers and fixed several bugs]
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
[mani: removed DT dependency, splitted and cleaned up for upstream]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20200220095854.4804-3-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/Kconfig
drivers/bus/Makefile
drivers/bus/mhi/Kconfig [new file with mode: 0644]
drivers/bus/mhi/Makefile [new file with mode: 0644]
drivers/bus/mhi/core/Makefile [new file with mode: 0644]
drivers/bus/mhi/core/init.c [new file with mode: 0644]
drivers/bus/mhi/core/internal.h [new file with mode: 0644]
include/linux/mhi.h [new file with mode: 0644]
include/linux/mod_devicetable.h