]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bus: mhi: Move host MHI code to "host" directory
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 1 Mar 2022 16:03:02 +0000 (21:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Mar 2022 13:02:54 +0000 (14:02 +0100)
In preparation of the endpoint MHI support, let's move the host MHI code
to its own "host" directory and adjust the toplevel MHI Kconfig & Makefile.

While at it, let's also move the "pci_generic" driver to "host" directory
as it is a host MHI controller driver.

Reviewed-by: Hemant Kumar <hemantk@codeaurora.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20220301160308.107452-5-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12 files changed:
drivers/bus/Makefile
drivers/bus/mhi/Kconfig
drivers/bus/mhi/Makefile
drivers/bus/mhi/host/Kconfig [new file with mode: 0644]
drivers/bus/mhi/host/Makefile [moved from drivers/bus/mhi/core/Makefile with 54% similarity]
drivers/bus/mhi/host/boot.c [moved from drivers/bus/mhi/core/boot.c with 100% similarity]
drivers/bus/mhi/host/debugfs.c [moved from drivers/bus/mhi/core/debugfs.c with 100% similarity]
drivers/bus/mhi/host/init.c [moved from drivers/bus/mhi/core/init.c with 100% similarity]
drivers/bus/mhi/host/internal.h [moved from drivers/bus/mhi/core/internal.h with 100% similarity]
drivers/bus/mhi/host/main.c [moved from drivers/bus/mhi/core/main.c with 100% similarity]
drivers/bus/mhi/host/pci_generic.c [moved from drivers/bus/mhi/pci_generic.c with 100% similarity]
drivers/bus/mhi/host/pm.c [moved from drivers/bus/mhi/core/pm.c with 100% similarity]

index 52c2f35a26a99d587e11f9751bbaf341be703dc6..16da51130d1a17ba630ab887c71a21ef9561c642 100644 (file)
@@ -39,4 +39,4 @@ obj-$(CONFIG_VEXPRESS_CONFIG) += vexpress-config.o
 obj-$(CONFIG_DA8XX_MSTPRI)     += da8xx-mstpri.o
 
 # MHI
-obj-$(CONFIG_MHI_BUS)          += mhi/
+obj-y                          += mhi/
index da5cd0c9fc620ab595e742c422f1a22a2a84c7b9..4748df7f9cd5835f5cd0fdce4f3bd95a3e1921db 100644 (file)
@@ -2,30 +2,7 @@
 #
 # MHI bus
 #
-# Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
+# Copyright (c) 2021, Linaro Ltd.
 #
 
-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.
-
-config MHI_BUS_DEBUG
-       bool "Debugfs support for the MHI bus"
-       depends on MHI_BUS && DEBUG_FS
-       help
-         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 MHI PCI controller driver for devices such as
-         Qualcomm SDX55 based PCIe modems.
-
+source "drivers/bus/mhi/host/Kconfig"
index 0a2d778d6fb42f31c80b5faedd40fea83531fc4f..5f5708a249f54eec3a00387ab78845d95dcca21f 100644 (file)
@@ -1,6 +1,2 @@
-# core layer
-obj-y += core/
-
-obj-$(CONFIG_MHI_BUS_PCI_GENERIC) += mhi_pci_generic.o
-mhi_pci_generic-y += pci_generic.o
-
+# Host MHI stack
+obj-y += host/
diff --git a/drivers/bus/mhi/host/Kconfig b/drivers/bus/mhi/host/Kconfig
new file mode 100644 (file)
index 0000000..da5cd0c
--- /dev/null
@@ -0,0 +1,31 @@
+# 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.
+
+config MHI_BUS_DEBUG
+       bool "Debugfs support for the MHI bus"
+       depends on MHI_BUS && DEBUG_FS
+       help
+         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 MHI PCI controller driver for devices such as
+         Qualcomm SDX55 based PCIe modems.
+
similarity index 54%
rename from drivers/bus/mhi/core/Makefile
rename to drivers/bus/mhi/host/Makefile
index c3feb4130aa371f5d4209cec6c4119748d4ba8e9..859c2f38451c669b3d3014c374b2b957c99a1cfe 100644 (file)
@@ -1,4 +1,6 @@
 obj-$(CONFIG_MHI_BUS) += mhi.o
-
 mhi-y := init.o main.o pm.o boot.o
 mhi-$(CONFIG_MHI_BUS_DEBUG) += debugfs.o
+
+obj-$(CONFIG_MHI_BUS_PCI_GENERIC) += mhi_pci_generic.o
+mhi_pci_generic-y += pci_generic.o