Skip to contentSkip to conversation

usb: Don't make USB_ARCH_HAS_OHCI and USB_ARCH_HAS_EHCI depend on USB_SUPPORT.

PATCH In review David Daney 2 participants 3 messages Mar 12, 2012 – Mar 13, 2012 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: Don't make USB_ARCH_HAS_OHCI and USB_ARCH_HAS_EHCI depend on USB_SUPPORT.

From: David Daney <[email protected]>

The fact that an architecture/board has OHCI or EHCI does not depend on the fact that the kernel is configured with USB_SUPPORT.

Make the Kconfig reflect this fact thus avoiding ugly messages like:

warning: (MIPS_ALCHEMY && CAVIUM_OCTEON_REFERENCE_BOARD && SOC_AR71XX && SOC_AR724X && SOC_AR913X && SOC_AR933X) selects USB_ARCH_HAS_EHCI which has unmet direct dependencies (USB_SUPPORT)

Cc Greg Kroah-Hartman <[email protected]>
Cc Paul Gortmaker <[email protected]>
---
 drivers/usb/Kconfig |   42 +++++++++++++++++++++---------------------
 1 files changed, 21 insertions(+), 21 deletions(-)
drivers/usb/Kconfig +21 -21
index 0b0afc8..b9ffe6e 100644
@@ -10,27 +10,6 @@ menuconfig USB_SUPPORT
 	  This option adds core support for Universal Serial Bus (USB).
 	  You will also need drivers from the following menu to make use of it.
 
-if USB_SUPPORT
-
-config USB_COMMON
-	tristate
-	default y
-	depends on USB || USB_GADGET
-
-# Host-side USB depends on having a host controller
-# NOTE:  dummy_hcd is always an option, but it's ignored here ...
-# NOTE:  SL-811 option should be board-specific ...
-config USB_ARCH_HAS_HCD
-	boolean
-	default y if USB_ARCH_HAS_OHCI
-	default y if USB_ARCH_HAS_EHCI
-	default y if USB_ARCH_HAS_XHCI
-	default y if PCMCIA && !M32R			# sl811_cs
-	default y if ARM				# SL-811
-	default y if BLACKFIN				# SL-811
-	default y if SUPERH				# r8a66597-hcd
-	default PCI
-
 # many non-PCI SOC chips embed OHCI
 config USB_ARCH_HAS_OHCI
 	boolean
@@ -79,6 +58,27 @@ config USB_ARCH_HAS_EHCI
 	default y if MACH_LOONGSON1
 	default PCI
 
+if USB_SUPPORT
+
+config USB_COMMON
+	tristate
+	default y
+	depends on USB || USB_GADGET
+
+# Host-side USB depends on having a host controller
+# NOTE:  dummy_hcd is always an option, but it's ignored here ...
+# NOTE:  SL-811 option should be board-specific ...
+config USB_ARCH_HAS_HCD
+	boolean
+	default y if USB_ARCH_HAS_OHCI
+	default y if USB_ARCH_HAS_EHCI
+	default y if USB_ARCH_HAS_XHCI
+	default y if PCMCIA && !M32R			# sl811_cs
+	default y if ARM				# SL-811
+	default y if BLACKFIN				# SL-811
+	default y if SUPERH				# r8a66597-hcd
+	default PCI
+
 # some non-PCI HCDs implement xHCI
 config USB_ARCH_HAS_XHCI
 	boolean
Signature · 1 line
1.7.2.3
#1 lore raw
Quoted 4 lines · David Daney

From: David Daney <[email protected]>

The fact that an architecture/board has OHCI or EHCI does not depend on the fact that the kernel is configured with USB_SUPPORT.

Why are you ignoring XHCI here as well? Shouldn't that fall under the same rules as OHCI and EHCI (hint, they should...)

thanks,

greg k-h

#2 lore raw
Quoted 7 lines · Greg Kroah-Hartman
Quoted 4 lines · David Daney

From: David Daney<[email protected]>

The fact that an architecture/board has OHCI or EHCI does not depend on the fact that the kernel is configured with USB_SUPPORT.

Why are you ignoring XHCI here as well?

Because it was not failing for my specific configuration.

Quoted 2 lines

Shouldn't that fall under the
same rules as OHCI and EHCI (hint, they should...)

OK, makes sense, I will change it to do that too.

New patch soon...

David Daney