Skip to contentSkip to conversation

usb: musb: Kconfig: Drop dependency on CONFIG_USB for jz4740

PATCH New Bin Liu 1 participant 1 message Feb 11, 2019

Subsystems (2)
lore
Share & tools
lore

Bin Liu

author maintainer
#0 lore raw

PATCH 5/5 usb: musb: Kconfig: Drop dependency on CONFIG_USB for jz4740

From: Paul Cercueil <[email protected]>

The Kconfig entry previously depended on USB_OTG_BLACKLIST_HUB unconditionally, which is an option that is only available when CONFIG_USB is enabled. However, the USB IP in the JZ4740 SoC does not support host mode, only gadget mode, so it makes sense to allow it to build when CONFIG_USB is not set.

---
 drivers/usb/musb/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/musb/Kconfig +1 -1
index a23719bb2482..f742fddc5e2c 100644
@@ -114,7 +114,7 @@ config USB_MUSB_JZ4740
 	depends on NOP_USB_XCEIV
 	depends on MIPS || COMPILE_TEST
 	depends on USB_MUSB_GADGET
-	depends on USB_OTG_BLACKLIST_HUB
+	depends on USB=n || USB_OTG_BLACKLIST_HUB
 
 config USB_MUSB_AM335X_CHILD
 	tristate