Skip to content

Commit

Permalink
bus: mhi: core: Add support for registering MHI controllers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mani-Sadhasivam authored and gregkh committed Mar 19, 2020
1 parent 9435dc3 commit 0cbf260
Show file tree
Hide file tree
Showing 9 changed files with 988 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/bus/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,6 @@ config DA8XX_MSTPRI
peripherals.

source "drivers/bus/fsl-mc/Kconfig"
source "drivers/bus/mhi/Kconfig"

endmenu
3 changes: 3 additions & 0 deletions drivers/bus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ obj-$(CONFIG_UNIPHIER_SYSTEM_BUS) += uniphier-system-bus.o
obj-$(CONFIG_VEXPRESS_CONFIG) += vexpress-config.o

obj-$(CONFIG_DA8XX_MSTPRI) += da8xx-mstpri.o

# MHI
obj-$(CONFIG_MHI_BUS) += mhi/
14 changes: 14 additions & 0 deletions drivers/bus/mhi/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SPDX-License-Identifier: GPL-2.0
#
# MHI bus
#
# Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
#

config MHI_BUS
tristate "Modem Host Interface (MHI) bus"
help
Bus driver for MHI protocol. Modem Host Interface (MHI) is a
communication protocol used by the host processors to control
and communicate with modem devices over a high speed peripheral
bus or shared memory.
2 changes: 2 additions & 0 deletions drivers/bus/mhi/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# core layer
obj-y += core/
3 changes: 3 additions & 0 deletions drivers/bus/mhi/core/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
obj-$(CONFIG_MHI_BUS) := mhi.o

mhi-y := init.o
Loading

0 comments on commit 0cbf260

Please sign in to comment.