Skip to content

Commit 43c037a

Browse files
malikolivierPhil Elwell
authored and
Phil Elwell
committed
USB_DWCOTG: Disable building dwc_otg as a module
When dwc_otg is built as a module, build will fail with the following error: ERROR: "DWC_TASK_HI_SCHEDULE" [drivers/usb/host/dwc_otg/dwc_otg.ko] undefined! scripts/Makefile.modpost:91: recipe for target '__modpost' failed make[1]: *** [__modpost] Error 1 Makefile:1199: recipe for target 'modules' failed make: *** [modules] Error 2 Even if the error is solved by including the missing DWC_TASK_HI_SCHEDULE function, the kernel will panic when loading dwc_otg. As a workaround, simply prevent user from building dwc_otg as a module as the current kernel does not support it. See details in raspberrypi#2258. Signed-off-by: Malik Olivier Boussejra <[email protected]>
1 parent bc9f2c9 commit 43c037a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/usb/host/Kconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ config USB_HWA_HCD
763763
will be called "hwa-hc".
764764

765765
config USB_DWCOTG
766-
tristate "Synopsis DWC host support"
766+
bool "Synopsis DWC host support"
767767
depends on USB && (FIQ || ARM64)
768768
help
769769
The Synopsis DWC controller is a dual-role
@@ -772,9 +772,6 @@ config USB_DWCOTG
772772
Enable this option to support this IP in host controller mode.
773773
If unsure, say N.
774774

775-
To compile this driver as a module, choose M here: the
776-
modules built will be called dwc_otg and dwc_common_port.
777-
778775
config USB_IMX21_HCD
779776
tristate "i.MX21 HCD support"
780777
depends on ARM && ARCH_MXC

0 commit comments

Comments
 (0)