Skip to content

Commit a0dc604

Browse files
pelwellPhil Elwell
authored and
Phil Elwell
committed
USB_DWCOTG: Disable building dwc_otg as a module (raspberrypi#2265)
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: raspberrypi#2258 Signed-off-by: Malik Olivier Boussejra <[email protected]>
1 parent 328612f commit a0dc604

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
@@ -772,7 +772,7 @@ config USB_HWA_HCD
772772
will be called "hwa-hc".
773773

774774
config USB_DWCOTG
775-
tristate "Synopsis DWC host support"
775+
bool "Synopsis DWC host support"
776776
depends on USB && (FIQ || ARM64)
777777
help
778778
The Synopsis DWC controller is a dual-role
@@ -781,9 +781,6 @@ config USB_DWCOTG
781781
Enable this option to support this IP in host controller mode.
782782
If unsure, say N.
783783

784-
To compile this driver as a module, choose M here: the
785-
modules built will be called dwc_otg and dwc_common_port.
786-
787784
config USB_IMX21_HCD
788785
tristate "i.MX21 HCD support"
789786
depends on ARM && ARCH_MXC

0 commit comments

Comments
 (0)