From f7cac23dc59aeff49161db19edf0ae32cdda0f75 Mon Sep 17 00:00:00 2001 From: Til Kaiser Date: Wed, 11 Mar 2026 21:36:59 +0100 Subject: [PATCH] kernel: usb-dwc3-qcom: package legacy Qualcomm glue driver 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 Link: https://github.com/openwrt/openwrt/pull/21078 Signed-off-by: Robert Marko --- 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 b90a967014..10f2c8cc90 100644 --- a/package/kernel/linux/modules/usb.mk +++ b/package/kernel/linux/modules/usb.mk @@ -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