[openwrt/openwrt] kernel: add kmod-usb-dwc3-octeon

LEDE Commits lede-commits at lists.infradead.org
Sat Dec 28 01:38:14 PST 2024


robimarko pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/47e3413f6bb5be11def3dc9e5a3b2352e71ae553

commit 47e3413f6bb5be11def3dc9e5a3b2352e71ae553
Author: Fabian Groffen <grobian at gentoo.org>
AuthorDate: Fri Dec 27 15:48:19 2024 +0100

    kernel: add kmod-usb-dwc3-octeon
    
    Since 24.10.0, Linux 6.6 is used which includes a reorganisation of
    Octeon DWC3 glue code.
    https://lore.kernel.org/all/ZJC3LLpUlatnLdnv@lenoch/
    
    As a result, Octeon devices using this, such as EdgeRouter 4 have a no
    longer functioning USB stack.
    
    Build kmod-usb-dwc3-octeon for Cavium Octeon targets.
    
    Issue: https://github.com/openwrt/openwrt/issues/17195
    Signed-off-by: Fabian Groffen <grobian at gentoo.org>
    Link: https://github.com/openwrt/openwrt/pull/17393
    Signed-off-by: Robert Marko <robimarko at gmail.com>
    (cherry picked from commit 9adcf61abb7746919114db4030ea1e1a6fc416eb)
---
 package/kernel/linux/modules/usb.mk | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index 734df050cd..8f934800fc 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -519,6 +519,23 @@ endef
 $(eval $(call KernelPackage,usb-dwc3))
 
 
+define KernelPackage/usb-dwc3-octeon
+  TITLE:=DWC3 Cavium Octeon USB driver
+  DEPENDS:=@TARGET_octeon +kmod-usb-dwc3
+  KCONFIG:= CONFIG_USB_DWC3_OCTEON
+  FILES:= $(LINUX_DIR)/drivers/usb/dwc3/dwc3-octeon.ko
+  AUTOLOAD:=$(call AutoProbe,dwc3-octeon,1)
+  $(call AddDepends/usb)
+endef
+
+define KernelPackage/usb-dwc3-octeon/description
+  This driver adds support for Cavium Octeon platforms with DesignWare
+  Core USB3 IP.
+endef
+
+$(eval $(call KernelPackage,usb-dwc3-octeon))
+
+
 define KernelPackage/usb-dwc3-qcom
   TITLE:=DWC3 Qualcomm USB driver
   DEPENDS:=@(TARGET_ipq40xx||TARGET_ipq806x||TARGET_qualcommax) +kmod-usb-dwc3




More information about the lede-commits mailing list