]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: usb-dwc3-qcom: package legacy Qualcomm glue driver
authorTil Kaiser <mail@tk154.de>
Wed, 11 Mar 2026 20:36:59 +0000 (21:36 +0100)
committerRobert Marko <robimarko@gmail.com>
Sat, 28 Mar 2026 10:51:10 +0000 (11:51 +0100)
Linux 6.18 now builds both dwc3-qcom.ko and dwc3-qcom-legacy.ko
under CONFIG_USB_DWC3_QCOM. [1]

Upstream qcom-ipq4019.dtsi still uses the legacy Qualcomm DWC3 DT
layout, so ipq40xx boards require the legacy glue driver for USB
host bring-up.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b958b03c82d2a1c470225355e43248c679a949a5

Signed-off-by: Til Kaiser <mail@tk154.de>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/kernel/linux/modules/usb.mk

index b90a9670140187c5bca5b2d348bf5c97e8d0d80f..10f2c8cc90155b1f3eb00a5aa99a0fb98d0a090d 100644 (file)
@@ -581,8 +581,10 @@ define KernelPackage/usb-dwc3-qcom
   TITLE:=DWC3 Qualcomm USB driver
   DEPENDS:=@(TARGET_ipq40xx||TARGET_ipq806x||TARGET_qualcommax||TARGET_qualcommbe) +kmod-usb-dwc3
   KCONFIG:= CONFIG_USB_DWC3_QCOM
-  FILES:= $(LINUX_DIR)/drivers/usb/dwc3/dwc3-qcom.ko
-  AUTOLOAD:=$(call AutoLoad,53,dwc3-qcom,1)
+  FILES:= \
+       $(LINUX_DIR)/drivers/usb/dwc3/dwc3-qcom.ko \
+       $(LINUX_DIR)/drivers/usb/dwc3/dwc3-qcom-legacy.ko@ge6.18
+  AUTOLOAD:=$(call AutoLoad,53,dwc3-qcom !LINUX_6_12:dwc3-qcom-legacy,1)
   $(call AddDepends/usb)
 endef