[openwrt/openwrt] kernel: 5.15: fix mediatek usb module change

LEDE Commits lede-commits at lists.infradead.org
Mon Mar 28 02:08:17 PDT 2022


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/f65596e8a9c34973ec2635cd37e77e7cf875424e

commit f65596e8a9c34973ec2635cd37e77e7cf875424e
Author: John Thomson <git at johnthomson.fastmail.com.au>
AuthorDate: Mon Mar 28 11:50:44 2022 +1000

    kernel: 5.15: fix mediatek usb module change
    
    The mediatek USB kernel module xhci-mtk was restructed.
    The module after kernel 5.13 is named xhci-mtk-hcd.
    Link:
    https://lore.kernel.org/all/0b62e21ddfacc1c2874726dd27ccab80c993f303.1615170625.git.chunfeng.yun@mediatek.com/
    Linux 14295a150050 ("usb: xhci-mtk: support to build xhci-mtk-hcd.ko")
    
    Signed-off-by: John Thomson <git at johnthomson.fastmail.com.au>
---
 package/kernel/linux/modules/usb.mk | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index c12150fc5c..a52ba745ef 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -1787,8 +1787,10 @@ define KernelPackage/usb-xhci-mtk
   DEPENDS:=+kmod-usb-xhci-hcd
   KCONFIG:=CONFIG_USB_XHCI_MTK
   HIDDEN:=1
-  FILES:=$(LINUX_DIR)/drivers/usb/host/xhci-mtk.ko
-  AUTOLOAD:=$(call AutoLoad,54,xhci-mtk,1)
+  FILES:= \
+	 $(LINUX_DIR)/drivers/usb/host/xhci-mtk.ko at lt5.13 \
+	 $(LINUX_DIR)/drivers/usb/host/xhci-mtk-hcd.ko at ge5.13
+  AUTOLOAD:=$(call AutoLoad,54,xhci-mtk at lt5.13 xhci-mtk-hcd at gt5.13,1)
   $(call AddDepends/usb)
 endef
 




More information about the lede-commits mailing list