* [PATCH] usb: Don't make USB_ARCH_HAS_OHCI and USB_ARCH_HAS_EHCI depend on USB_SUPPORT.
@ 2012-03-12 19:01 David Daney
2012-03-13 21:17 ` Greg Kroah-Hartman
0 siblings, 1 reply; 3+ messages in thread
From: David Daney @ 2012-03-12 19:01 UTC (permalink / raw)
To: linux-usb; +Cc: linux-kernel, David Daney, Greg Kroah-Hartman, Paul Gortmaker
From: David Daney <david.daney@cavium.com>
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)
Signed-off-by: David Daney <david.daney@cavium.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
---
drivers/usb/Kconfig | 42 +++++++++++++++++++++---------------------
1 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig
index 0b0afc8..b9ffe6e 100644
--- a/drivers/usb/Kconfig
+++ b/drivers/usb/Kconfig
@@ -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
--
1.7.2.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] usb: Don't make USB_ARCH_HAS_OHCI and USB_ARCH_HAS_EHCI depend on USB_SUPPORT.
2012-03-12 19:01 [PATCH] usb: Don't make USB_ARCH_HAS_OHCI and USB_ARCH_HAS_EHCI depend on USB_SUPPORT David Daney
@ 2012-03-13 21:17 ` Greg Kroah-Hartman
2012-03-13 21:39 ` David Daney
0 siblings, 1 reply; 3+ messages in thread
From: Greg Kroah-Hartman @ 2012-03-13 21:17 UTC (permalink / raw)
To: David Daney; +Cc: linux-usb, linux-kernel, David Daney, Paul Gortmaker
On Mon, Mar 12, 2012 at 12:01:44PM -0700, David Daney wrote:
> From: David Daney <david.daney@cavium.com>
>
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] usb: Don't make USB_ARCH_HAS_OHCI and USB_ARCH_HAS_EHCI depend on USB_SUPPORT.
2012-03-13 21:17 ` Greg Kroah-Hartman
@ 2012-03-13 21:39 ` David Daney
0 siblings, 0 replies; 3+ messages in thread
From: David Daney @ 2012-03-13 21:39 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-usb, linux-kernel, David Daney, Paul Gortmaker
On 03/13/2012 02:17 PM, Greg Kroah-Hartman wrote:
> On Mon, Mar 12, 2012 at 12:01:44PM -0700, David Daney wrote:
>> From: David Daney<david.daney@cavium.com>
>>
>> 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.
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-13 21:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-12 19:01 [PATCH] usb: Don't make USB_ARCH_HAS_OHCI and USB_ARCH_HAS_EHCI depend on USB_SUPPORT David Daney
2012-03-13 21:17 ` Greg Kroah-Hartman
2012-03-13 21:39 ` David Daney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox