Page MenuHomeSolus

linux-current: Include the MHI bus and associated drivers for WWAN PCI cards support
Closed, ResolvedPublic

Description

Recently got a SIM card for my WWAN module (Quectel EM120R-GL), I've thus set out to make it work with Solus.

I've noticed that the drivers for the MHI bus have been left disabled in R3571.
Since kernel 5.13, most recent PCI WWAN cards are supported through the mhi_pci_generic driver.

I would therefore like to include the mhi, mhi_pci_generic and sub-drivers as modules to allow for compatibility with more recent WWAN cards.

I don't exactly understand what the process is for updating the kconfig, but here's what I've used to compile and test that the driver was working with my card:

diff --git a/files/config b/files/config
index e82e6b3..dad40ae 100644
--- a/files/config
+++ b/files/config
@@ -1,6 +1,6 @@
 #
 # Automatically generated file; DO NOT EDIT.
-# Linux/x86_64 5.15.26-211.current Kernel Configuration
+# Linux/x86_64 5.15.30 Kernel Configuration
 #
 CONFIG_CC_VERSION_TEXT="gcc (Solus) 11.2.0"
 CONFIG_CC_IS_GCC=y
@@ -2007,7 +2007,9 @@ CONFIG_DMA_SHARED_BUFFER=y
 #
 # Bus devices
 #
-# CONFIG_MHI_BUS is not set
+CONFIG_MHI_BUS=m
+# CONFIG_MHI_BUS_DEBUG is not set
+CONFIG_MHI_BUS_PCI_GENERIC=m
 # end of Bus devices
 
 CONFIG_CONNECTOR=m
@@ -2703,6 +2705,7 @@ CONFIG_VETH=m
 CONFIG_VIRTIO_NET=m
 CONFIG_NLMON=m
 # CONFIG_VSOCKMON is not set
+CONFIG_MHI_NET=m
 CONFIG_SUNGEM_PHY=m
 CONFIG_ARCNET=m
 CONFIG_ARCNET_1201=m
@@ -3432,6 +3435,8 @@ CONFIG_IEEE802154_DRIVERS=m
 #
 CONFIG_WWAN=y
 # CONFIG_WWAN_HWSIM is not set
+CONFIG_MHI_WWAN_CTRL=m
+CONFIG_MHI_WWAN_MBIM=m
 # CONFIG_IOSM is not set
 # end of Wireless WAN

Revisions and Commits

Event Timeline

Lutonite renamed this task from include the MHI bus and associated drivers for WWAN PCI cards support to Include the MHI bus and associated drivers for WWAN PCI cards support.Mar 23 2022, 12:47 PM
Lutonite renamed this task from Include the MHI bus and associated drivers for WWAN PCI cards support to linux: Include the MHI bus and associated drivers for WWAN PCI cards support.
Lutonite created this task.
Lutonite renamed this task from linux: Include the MHI bus and associated drivers for WWAN PCI cards support to linux-current: Include the MHI bus and associated drivers for WWAN PCI cards support.Mar 23 2022, 12:52 PM
Girtablulu triaged this task as Normal priority.
Girtablulu moved this task from Backlog to Improvement on the Software board.
DataDrake moved this task from Backlog to Kernel Drivers on the Hardware board.