Skip to content

Commit 822a50e

Browse files
committed
configs: arm64: Make USB_DWC2 built-in
It has been decided that we should drop DWC_OTG support on the 64-bit kernels. Its raison-d'etre on ARCH=arm is the FIQ FSM, which significantly reduces the overheads of running the hardware in host mode. Unfortunately, upstream Linux uses the DWC2 driver, which has had a lot of attention over the years. In particular, there are a number of situations where DWC_OTG fails where DWC2 works, despite the reduced throughput. In the ARMv8 kernel, FIQ support was missing, and is now just different in an awkward way. It is possible to use DWC_OTG in the v8 kernel, but only when the FIQ support is disabled, removing its advantage. It therefore makes sense to transition to using the DWC2 driver in the 64-bit kernels, deprecating DWC_OTG. The first cautious step is to make the DWC2 driver a built-in, so that either driver can be used for booting. Unfortunately this increases the size of the kernel by ~200kB, but the intention is later to demote DWC_OTG to a module or drop it altogether. Signed-off-by: Phil Elwell <[email protected]>
1 parent 8514443 commit 822a50e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

arch/arm64/configs/bcm2711_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ CONFIG_USBIP_VHCI_HCD=m
12921292
CONFIG_USBIP_HOST=m
12931293
CONFIG_USBIP_VUDC=m
12941294
CONFIG_USB_DWC3=y
1295-
CONFIG_USB_DWC2=m
1295+
CONFIG_USB_DWC2=y
12961296
CONFIG_USB_SERIAL=m
12971297
CONFIG_USB_SERIAL_GENERIC=y
12981298
CONFIG_USB_SERIAL_SIMPLE=m

arch/arm64/configs/bcm2711_rt_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ CONFIG_USBIP_VHCI_HCD=m
12911291
CONFIG_USBIP_HOST=m
12921292
CONFIG_USBIP_VUDC=m
12931293
CONFIG_USB_DWC3=y
1294-
CONFIG_USB_DWC2=m
1294+
CONFIG_USB_DWC2=y
12951295
CONFIG_USB_SERIAL=m
12961296
CONFIG_USB_SERIAL_GENERIC=y
12971297
CONFIG_USB_SERIAL_SIMPLE=m

arch/arm64/configs/bcm2712_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ CONFIG_USBIP_VHCI_HCD=m
12941294
CONFIG_USBIP_HOST=m
12951295
CONFIG_USBIP_VUDC=m
12961296
CONFIG_USB_DWC3=y
1297-
CONFIG_USB_DWC2=m
1297+
CONFIG_USB_DWC2=y
12981298
CONFIG_USB_SERIAL=m
12991299
CONFIG_USB_SERIAL_GENERIC=y
13001300
CONFIG_USB_SERIAL_SIMPLE=m

0 commit comments

Comments
 (0)