2020-09-18 19:29:40

by Bhaumik Bhatt

[permalink] [raw]
Subject: [PATCH v2 0/3] Debugfs and Sysfs entries for MHI

Introduce debugfs and sysfs entries for MHI.
Fixes to allow building MHI as a module without warnings/errors.

This set of patches was tested on arm64 and x86_64 architectures.

v2:
-Remove the patch for removal of MODULE_LICENSE() warnings
-Add fixes to adhere to the Kconfig coding style

Bhaumik Bhatt (3):
bus: mhi: Fix entries based on Kconfig conding style
bus: mhi: core: Introduce debugfs entries for MHI
bus: mhi: core: Introduce sysfs entries for MHI

Documentation/ABI/stable/sysfs-bus-mhi | 21 ++
MAINTAINERS | 1 +
drivers/bus/mhi/Kconfig | 20 +-
drivers/bus/mhi/core/Makefile | 1 +
drivers/bus/mhi/core/debugfs.c | 410 +++++++++++++++++++++++++++++++++
drivers/bus/mhi/core/init.c | 60 +++++
drivers/bus/mhi/core/internal.h | 24 ++
include/linux/mhi.h | 2 +
8 files changed, 533 insertions(+), 6 deletions(-)
create mode 100644 Documentation/ABI/stable/sysfs-bus-mhi
create mode 100644 drivers/bus/mhi/core/debugfs.c

--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


2020-09-18 19:30:37

by Bhaumik Bhatt

[permalink] [raw]
Subject: [PATCH v2 1/3] bus: mhi: Fix entries based on Kconfig conding style

Kconfig coding style suggests use of tabs for the configuration
definition and an additional two spaces for the help text. Make the
required changes to the MHI Kconfig adhering to those guidelines.

Signed-off-by: Bhaumik Bhatt <[email protected]>
---
drivers/bus/mhi/Kconfig | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/bus/mhi/Kconfig b/drivers/bus/mhi/Kconfig
index a8bd9bd..6677ccc 100644
--- a/drivers/bus/mhi/Kconfig
+++ b/drivers/bus/mhi/Kconfig
@@ -6,9 +6,9 @@
#

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.
+ 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.
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project