From: Phil Elwell Date: Mon, 13 Nov 2017 13:00:14 +0000 (+0000) Subject: USB_DWCOTG: Disable building dwc_otg as a module (#2265) X-Git-Tag: archive/raspbian/4.9.82-1+deb9u3+rpi1_jessie~5^2~68 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3343693c634e98bc0f25fec5c0d05ceba984192c;p=linux-4.9.git USB_DWCOTG: Disable building dwc_otg as a module (#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: https://github.com/raspberrypi/linux/issues/2258 Signed-off-by: Malik Olivier Boussejra --- diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index f3cecb64a380..fa39573658a2 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -763,7 +763,7 @@ config USB_HWA_HCD will be called "hwa-hc". config USB_DWCOTG - tristate "Synopsis DWC host support" + bool "Synopsis DWC host support" depends on USB && (FIQ || ARM64) help The Synopsis DWC controller is a dual-role @@ -772,9 +772,6 @@ config USB_DWCOTG Enable this option to support this IP in host controller mode. If unsure, say N. - To compile this driver as a module, choose M here: the - modules built will be called dwc_otg and dwc_common_port. - config USB_IMX21_HCD tristate "i.MX21 HCD support" depends on ARM && ARCH_MXC