hw: Only compile the usb-dwc2 controller if it is really needed
authorThomas Huth <thuth@redhat.com>
Wed, 22 Jul 2020 15:47:19 +0000 (17:47 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 24 Jul 2020 14:15:28 +0000 (16:15 +0200)
The USB_DWC2 switch is currently "default y", so it is included in all
qemu-system-* builds, even if it is not needed. Even worse, it does a
"select USB", so USB devices are now showing up as available on targets
that do not support USB at all. This sysbus device should only be
included by the boards that need it, i.e. by the Raspi machines.

Fixes: 153ef1662c ("dwc-hsotg (dwc2) USB host controller emulation")
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Paul Zimmerman <pauldzim@gmail.com>
Message-id: 20200722154719.10130-1-thuth@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/arm/Kconfig
hw/usb/Kconfig

index 4a224a6351abfdfc501a6f8562c864061b4b03d7..bc3a423940b739f008f24626b3a26084f4ec5f74 100644 (file)
@@ -315,6 +315,7 @@ config RASPI
     select FRAMEBUFFER
     select PL011 # UART
     select SDHCI
+    select USB_DWC2
 
 config STM32F205_SOC
     bool
index d4d8c37c289795b1b40079fcb4eb7a98dca185ee..5e63dc75f815003ea43f43fb6fd1e484802905b8 100644 (file)
@@ -48,7 +48,6 @@ config USB_MUSB
 
 config USB_DWC2
     bool
-    default y
     select USB
 
 config TUSB6010