kernel: fix missing mhi control devices
authorKoen Vandeputte <koen.vandeputte@ncentric.com>
Fri, 5 Aug 2022 14:34:44 +0000 (16:34 +0200)
committerKoen Vandeputte <koen.vandeputte@ncentric.com>
Mon, 8 Aug 2022 13:37:34 +0000 (15:37 +0200)
Both of these packages depend on CONFIG_WWAN
in the kernel.

Also fix the missing "wwan" subfolder in the path.

This fixes the missing devices in /dev after booting an MHI capable modem.

Fixes: 2519190fec ("kernel: package mhi wwan ctrl driver")
Fixes: 6af46796fa ("kernel: package mhi mbim driver")
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
package/kernel/linux/modules/netdevices.mk

index 2e81835fe16434f8d84851cd094f9b4240d39ea3..bb4e1ab5cd3273d93e07209675640e540a9c94f0 100644 (file)
@@ -1380,8 +1380,9 @@ define KernelPackage/mhi-wwan-ctrl
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=MHI WWAN Control
   DEPENDS:=@LINUX_5_15 @PCI_SUPPORT +kmod-mhi-bus
-  KCONFIG:=CONFIG_MHI_WWAN_CTRL
-  FILES:=$(LINUX_DIR)/drivers/net/mhi_wwan_ctrl.ko
+  KCONFIG:=CONFIG_MHI_WWAN_CTRL \
+       CONFIG_WWAN=y
+  FILES:=$(LINUX_DIR)/drivers/net/wwan/mhi_wwan_ctrl.ko
   AUTOLOAD:=$(call AutoProbe,mhi_wwan_ctrl)
 endef
 
@@ -1396,8 +1397,9 @@ define KernelPackage/mhi-wwan-mbim
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=MHI MBIM
   DEPENDS:=@LINUX_5_15 @PCI_SUPPORT +kmod-mhi-bus
-  KCONFIG:=CONFIG_MHI_WWAN_MBIM
-  FILES:=$(LINUX_DIR)/drivers/net/mhi_wwan_mbim.ko
+  KCONFIG:=CONFIG_MHI_WWAN_MBIM \
+       CONFIG_WWAN=y
+  FILES:=$(LINUX_DIR)/drivers/net/wwan/mhi_wwan_mbim.ko
   AUTOLOAD:=$(call AutoProbe,mhi_wwan_mbim)
 endef