mediatek: build USB XHCI support as module
authorDaniel Golle <daniel@makrotopia.org>
Wed, 14 Sep 2022 19:23:17 +0000 (20:23 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 14 Sep 2022 19:26:58 +0000 (20:26 +0100)
Instead of always including the XHCI driver in the kernel on all
MediaTek boards, selectively include the kernel module only on boards
which actually make use of USB functionality.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/kernel/linux/modules/usb.mk
target/linux/mediatek/filogic/config-5.15
target/linux/mediatek/mt7622/config-5.15
target/linux/mediatek/mt7623/config-5.15

index f3838b3981d33025f9afd64d27fed75b41617ff3..4ee70d7eb9a9e9ad2cd76a20f04555317186c06a 100644 (file)
@@ -1746,6 +1746,7 @@ define KernelPackage/usb3
        +TARGET_bcm53xx:kmod-usb-bcma \
        +TARGET_bcm53xx:kmod-phy-bcm-ns-usb3 \
        +TARGET_ramips_mt7621:kmod-usb-xhci-mtk \
+       +TARGET_mediatek:kmod-usb-xhci-mtk \
        +TARGET_apm821xx_nand:kmod-usb-xhci-pci-renesas \
        +TARGET_mvebu_cortexa9:kmod-usb-xhci-pci-renesas
   KCONFIG:= \
index 0c026e0e012d61a4cbd2b3cedf8aed645d86f4ea..963815b2649f6d4ee378edc8d4cc2ec9de87424d 100644 (file)
@@ -412,12 +412,7 @@ CONFIG_TREE_SRCU=y
 CONFIG_UBIFS_FS=y
 # CONFIG_UCLAMP_TASK is not set
 # 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_VMAP_STACK=y
 CONFIG_WATCHDOG_CORE=y
 CONFIG_WATCHDOG_PRETIMEOUT_DEFAULT_GOV_PANIC=y
index 8717e799ed800d8afc44efc88b5a98b306ac2dc4..c21ec45e90dfc1e98aa2d0daf4b40cc47fe75e94 100644 (file)
@@ -441,12 +441,7 @@ CONFIG_TREE_SRCU=y
 CONFIG_UBIFS_FS=y
 # CONFIG_UCLAMP_TASK is not set
 # 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_VMAP_STACK=y
 CONFIG_WATCHDOG_CORE=y
 CONFIG_WATCHDOG_PRETIMEOUT_DEFAULT_GOV_PANIC=y
index d28b051c853c381b9858ebbb6a25d5878cba7781..aa4c4cbad1232345149d7de713ed7770f3609c73 100644 (file)
@@ -552,9 +552,6 @@ CONFIG_USB_ROLE_SWITCH=y
 CONFIG_USB_SUPPORT=y
 CONFIG_USB_U_ETHER=y
 CONFIG_USB_U_SERIAL=y
-CONFIG_USB_XHCI_HCD=y
-CONFIG_USB_XHCI_MTK=y
-CONFIG_USB_XHCI_PLATFORM=y
 CONFIG_USE_OF=y
 CONFIG_VFP=y
 CONFIG_VFPv3=y