Skip to contentSkip to conversation

fix the USB_GADGET_DUMMY_HCD dependencies

PATCH New Adrian Bunk 1 participant 1 message Jul 30, 2006 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix the USB_GADGET_DUMMY_HCD dependencies

If USB=m, USB_GADGET=y, the option USB_GADGET_DUMMY_HCD mustn't be offered since selecting it results in a compile error.

This patch fixes kernel Bugzilla #6534 reported by Toralf Förster.

drivers/usb/gadget/Kconfig renamed from drivers/usb/gadget/Kconfig.old +1 -1
@@ -207,7 +207,7 @@
 
 config USB_GADGET_DUMMY_HCD
 	boolean "Dummy HCD (DEVELOPMENT)"
-	depends on USB && EXPERIMENTAL
+	depends on (USB=y || (USB=m && USB_GADGET=m)) && EXPERIMENTAL
 	select USB_GADGET_DUALSPEED
 	help
 	  This host controller driver emulates USB, looping all data transfer