2007-10-27 01:06:42

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] fix USB_OHCI_HCD_SSB dependencies

This patch fixes a bug introduced by
commit b22817b3c81cdb18ffe3d2debfee968731a8b5f4.

Signed-off-by: Adrian Bunk <[email protected]>

---
155ad66379582067ef2ce73d28e3cf6eedf21b14
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index 177e78e..49a91c5 100644
--- a/drivers/usb/host/Kconfig
+++ b/drivers/usb/host/Kconfig
@@ -156,7 +156,7 @@ config USB_OHCI_HCD_PCI

config USB_OHCI_HCD_SSB
bool "OHCI support for Broadcom SSB OHCI core"
- depends on USB_OHCI_HCD && (SSB = y || SSB = CONFIG_USB_OHCI_HCD) && EXPERIMENTAL
+ depends on USB_OHCI_HCD && (SSB = y || SSB = USB_OHCI_HCD) && EXPERIMENTAL
default n
---help---
Support for the Sonics Silicon Backplane (SSB) attached


2007-10-27 08:58:20

by Ingo Molnar

[permalink] [raw]
Subject: Re: [2.6 patch] fix USB_OHCI_HCD_SSB dependencies


* Adrian Bunk <[email protected]> wrote:

> - depends on USB_OHCI_HCD && (SSB = y || SSB = CONFIG_USB_OHCI_HCD) && EXPERIMENTAL
> + depends on USB_OHCI_HCD && (SSB = y || SSB = USB_OHCI_HCD) && EXPERIMENTAL

oops, indeed ... my Kconfig fu needs strengthening. Does Kconfig warn
somewhere if it sees an erroneous CONFIG_ token?

Ingo

2007-10-27 13:45:43

by Adrian Bunk

[permalink] [raw]
Subject: Re: [2.6 patch] fix USB_OHCI_HCD_SSB dependencies

On Sat, Oct 27, 2007 at 10:57:48AM +0200, Ingo Molnar wrote:
>
> * Adrian Bunk <[email protected]> wrote:
>
> > - depends on USB_OHCI_HCD && (SSB = y || SSB = CONFIG_USB_OHCI_HCD) && EXPERIMENTAL
> > + depends on USB_OHCI_HCD && (SSB = y || SSB = USB_OHCI_HCD) && EXPERIMENTAL
>
> oops, indeed ... my Kconfig fu needs strengthening. Does Kconfig warn
> somewhere if it sees an erroneous CONFIG_ token?

No. IIRC Sam was working in getting warnings for such things, but
currently kconfig simply can't know whether it's a bug or OK.

> Ingo

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

2007-10-28 16:15:29

by Jeremy Fitzhardinge

[permalink] [raw]
Subject: Re: [2.6 patch] fix USB_OHCI_HCD_SSB dependencies

Adrian Bunk wrote:
> On Sat, Oct 27, 2007 at 10:57:48AM +0200, Ingo Molnar wrote:
>
>> * Adrian Bunk <[email protected]> wrote:
>>
>>
>>> - depends on USB_OHCI_HCD && (SSB = y || SSB = CONFIG_USB_OHCI_HCD) && EXPERIMENTAL
>>> + depends on USB_OHCI_HCD && (SSB = y || SSB = USB_OHCI_HCD) && EXPERIMENTAL
>>>
>> oops, indeed ... my Kconfig fu needs strengthening. Does Kconfig warn
>> somewhere if it sees an erroneous CONFIG_ token?
>>
>
> No. IIRC Sam was working in getting warnings for such things, but
> currently kconfig simply can't know whether it's a bug or OK.
>

Are there any instances of CONFIG_CONFIG_X? Doesn't seem like a
terribly sensible name...

J

2007-10-28 16:35:44

by Robert P. J. Day

[permalink] [raw]
Subject: Re: [2.6 patch] fix USB_OHCI_HCD_SSB dependencies

On Sun, 28 Oct 2007, Jeremy Fitzhardinge wrote:

> Adrian Bunk wrote:
> > On Sat, Oct 27, 2007 at 10:57:48AM +0200, Ingo Molnar wrote:
> >
> >> * Adrian Bunk <[email protected]> wrote:
> >>
> >>
> >>> - depends on USB_OHCI_HCD && (SSB = y || SSB = CONFIG_USB_OHCI_HCD) && EXPERIMENTAL
> >>> + depends on USB_OHCI_HCD && (SSB = y || SSB = USB_OHCI_HCD) && EXPERIMENTAL
> >>>
> >> oops, indeed ... my Kconfig fu needs strengthening. Does Kconfig warn
> >> somewhere if it sees an erroneous CONFIG_ token?
> >>
> >
> > No. IIRC Sam was working in getting warnings for such things, but
> > currently kconfig simply can't know whether it's a bug or OK.
>
> Are there any instances of CONFIG_CONFIG_X? Doesn't seem like a
> terribly sensible name...

there used to be:

http://lists.linuxcoding.com/kernel/2006-q1/msg18685.html

but that was just the one, and it's gone now.

rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================