From: Vitaliy Sochnev Date: Fri, 7 Aug 2026 20:01:40 +0000 (+0100) Subject: airoha: an7583: build USB support into the kernel X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ec61b8832635de9ba2eedb5e70d772230f924ce;p=thirdparty%2Fopenwrt.git airoha: an7583: build USB support into the kernel The AN7583 has a single xHCI controller, the same block as on AN7581 and the MediaTek SoCs. Build the host controller and its glue driver into the kernel instead of shipping them as modules: the module route needs a subtarget dependency in KernelPackage/usb3 plus kmod-usb3 in the DEVICE_PACKAGES of every board that has USB ports, which is a roundabout way of getting two drivers loaded. Boards without USB ports carry the code as well, but they are not size constrained. Suggested-by: Robert Marko Signed-off-by: Vitaliy Sochnev Link: https://github.com/openwrt/openwrt/pull/24609 Signed-off-by: Robert Marko --- diff --git a/target/linux/airoha/an7583/config-6.18 b/target/linux/airoha/an7583/config-6.18 index bebd4c8a309..494dac53d14 100644 --- a/target/linux/airoha/an7583/config-6.18 +++ b/target/linux/airoha/an7583/config-6.18 @@ -368,6 +368,12 @@ CONFIG_TREE_RCU=y CONFIG_TREE_SRCU=y CONFIG_UBIFS_FS=y # CONFIG_UNMAP_KERNEL_AT_EL0 is not set +CONFIG_USB=y +CONFIG_USB_COMMON=y +CONFIG_USB_SUPPORT=y +CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_MTK=y +# CONFIG_USB_XHCI_PLATFORM is not set CONFIG_USER_STACKTRACE_SUPPORT=y CONFIG_VDSO_GETRANDOM=y CONFIG_VMAP_STACK=y