* [PATCH 7/8] Kconfig: silicon backplane dependency.
@ 2007-04-20 11:35 Martin Schwidefsky
2007-04-20 20:45 ` Michael Buesch
2007-04-21 23:19 ` Arnd Bergmann
0 siblings, 2 replies; 11+ messages in thread
From: Martin Schwidefsky @ 2007-04-20 11:35 UTC (permalink / raw)
To: linux-kernel, linux-s390; +Cc: akpm, mb, linville
From: Martin Schwidefsky <schwidefsky@de.ibm.com>
Make the "Sonics Silicon Backplane" menu dependent on the two buses
it can be found on.
Goes on top of git-wireless.patch.
Cc: Michael Buesch <mb@bu3sch.de>
Cc: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
---
drivers/ssb/Kconfig | 1 +
1 files changed, 1 insertion(+)
diff -urpN linux-2.6/drivers/ssb/Kconfig linux-2.6-patched/drivers/ssb/Kconfig
--- linux-2.6/drivers/ssb/Kconfig 2007-04-19 15:24:40.000000000 +0200
+++ linux-2.6-patched/drivers/ssb/Kconfig 2007-04-19 15:55:44.000000000 +0200
@@ -1,4 +1,5 @@
menu "Sonics Silicon Backplane"
+ depends on PCI || PCMCIA
config SSB
tristate "Sonics Silicon Backplane support"
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 7/8] Kconfig: silicon backplane dependency.
2007-04-20 11:35 [PATCH 7/8] Kconfig: silicon backplane dependency Martin Schwidefsky
@ 2007-04-20 20:45 ` Michael Buesch
2007-04-21 6:28 ` Martin Schwidefsky
2007-04-21 23:19 ` Arnd Bergmann
1 sibling, 1 reply; 11+ messages in thread
From: Michael Buesch @ 2007-04-20 20:45 UTC (permalink / raw)
To: Martin Schwidefsky; +Cc: linux-kernel, linux-s390, akpm, linville
On Friday 20 April 2007 13:35, Martin Schwidefsky wrote:
> From: Martin Schwidefsky <schwidefsky@de.ibm.com>
>
> Make the "Sonics Silicon Backplane" menu dependent on the two buses
> it can be found on.
> Goes on top of git-wireless.patch.
>
> Cc: Michael Buesch <mb@bu3sch.de>
> Cc: John W. Linville <linville@tuxdriver.com>
> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
> ---
>
> drivers/ssb/Kconfig | 1 +
> 1 files changed, 1 insertion(+)
>
> diff -urpN linux-2.6/drivers/ssb/Kconfig linux-2.6-patched/drivers/ssb/Kconfig
> --- linux-2.6/drivers/ssb/Kconfig 2007-04-19 15:24:40.000000000 +0200
> +++ linux-2.6-patched/drivers/ssb/Kconfig 2007-04-19 15:55:44.000000000 +0200
> @@ -1,4 +1,5 @@
> menu "Sonics Silicon Backplane"
> + depends on PCI || PCMCIA
This is wrong. SSB does not depend on PCI or PCMCIA.
SSB can (and does) stay very well on its own feet and
can be the main system bus.
Most Linksys WRT routers work that way. They have no
PCI bus, but a SSB bus instead.
Nevertheless, I'm not sure what your problem really is.
Does a s390 machine exist with a B44 card? I doubt it.
So what about the following: We simply add
a DEPENDS ON !S390 to both SSB and B44.
I really thing that is the right fix for this.
The patch above is clearly not, as it breaks things for
embedded devices without PCI or PCMCIA bus.
--
Greetings Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 7/8] Kconfig: silicon backplane dependency.
2007-04-20 20:45 ` Michael Buesch
@ 2007-04-21 6:28 ` Martin Schwidefsky
0 siblings, 0 replies; 11+ messages in thread
From: Martin Schwidefsky @ 2007-04-21 6:28 UTC (permalink / raw)
To: Michael Buesch; +Cc: linux-kernel, linux-s390, akpm, linville
On Fri, 2007-04-20 at 22:45 +0200, Michael Buesch wrote:
> This is wrong. SSB does not depend on PCI or PCMCIA.
> SSB can (and does) stay very well on its own feet and
> can be the main system bus.
> Most Linksys WRT routers work that way. They have no
> PCI bus, but a SSB bus instead.
>
> Nevertheless, I'm not sure what your problem really is.
> Does a s390 machine exist with a B44 card? I doubt it.
> So what about the following: We simply add
> a DEPENDS ON !S390 to both SSB and B44.
> I really thing that is the right fix for this.
> The patch above is clearly not, as it breaks things for
> embedded devices without PCI or PCMCIA bus.
Ok, thanks. I will change the patch accordingly.
--
blue skies, IBM Deutschland Entwicklung GmbH
Martin Vorsitzender des Aufsichtsrats: Johann Weihen
Geschäftsführung: Herbert Kircher
Martin Schwidefsky Sitz der Gesellschaft: Böblingen
Linux on zSeries Registergericht: Amtsgericht Stuttgart,
Development HRB 243294
"Reality continues to ruin my life." - Calvin.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 7/8] Kconfig: silicon backplane dependency.
2007-04-20 11:35 [PATCH 7/8] Kconfig: silicon backplane dependency Martin Schwidefsky
2007-04-20 20:45 ` Michael Buesch
@ 2007-04-21 23:19 ` Arnd Bergmann
2007-04-22 7:53 ` Martin Schwidefsky
1 sibling, 1 reply; 11+ messages in thread
From: Arnd Bergmann @ 2007-04-21 23:19 UTC (permalink / raw)
To: Martin Schwidefsky; +Cc: linux-kernel, linux-s390, akpm, mb, linville
On Friday 20 April 2007, Martin Schwidefsky wrote:
>
> From: Martin Schwidefsky <schwidefsky@de.ibm.com>
>
> Make the "Sonics Silicon Backplane" menu dependent on the two buses
> it can be found on.
> Goes on top of git-wireless.patch.
>
> Cc: Michael Buesch <mb@bu3sch.de>
> Cc: John W. Linville <linville@tuxdriver.com>
> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
> ---
>
> drivers/ssb/Kconfig | 1 +
> 1 files changed, 1 insertion(+)
>
> diff -urpN linux-2.6/drivers/ssb/Kconfig linux-2.6-patched/drivers/ssb/Kconfig
> --- linux-2.6/drivers/ssb/Kconfig 2007-04-19 15:24:40.000000000 +0200
> +++ linux-2.6-patched/drivers/ssb/Kconfig 2007-04-19 15:55:44.000000000 +0200
> @@ -1,4 +1,5 @@
> menu "Sonics Silicon Backplane"
> + depends on PCI || PCMCIA
No, this doesn't look right. There are other devices that come with
SiliconBackplane but are not PCI or PCMCIA style devices.
I'd make this 'depends on MMIO' as well if you add that option.
Arnd <><
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 7/8] Kconfig: silicon backplane dependency.
2007-04-21 23:19 ` Arnd Bergmann
@ 2007-04-22 7:53 ` Martin Schwidefsky
2007-04-22 9:46 ` Michael Buesch
0 siblings, 1 reply; 11+ messages in thread
From: Martin Schwidefsky @ 2007-04-22 7:53 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: linux-kernel, linux-s390, akpm, mb, linville
On Sun, 2007-04-22 at 01:19 +0200, Arnd Bergmann wrote:
> > diff -urpN linux-2.6/drivers/ssb/Kconfig linux-2.6-patched/drivers/ssb/Kconfig
> > --- linux-2.6/drivers/ssb/Kconfig 2007-04-19 15:24:40.000000000 +0200
> > +++ linux-2.6-patched/drivers/ssb/Kconfig 2007-04-19 15:55:44.000000000 +0200
> > @@ -1,4 +1,5 @@
> > menu "Sonics Silicon Backplane"
> > + depends on PCI || PCMCIA
>
> No, this doesn't look right. There are other devices that come with
> SiliconBackplane but are not PCI or PCMCIA style devices.
Yes, Michael already told me about that. The current solution is to use
!S390, could we use HAS_IOMEM instead ?
--
blue skies, IBM Deutschland Entwicklung GmbH
Martin Vorsitzender des Aufsichtsrats: Johann Weihen
Geschäftsführung: Herbert Kircher
Martin Schwidefsky Sitz der Gesellschaft: Böblingen
Linux on zSeries Registergericht: Amtsgericht Stuttgart,
Development HRB 243294
"Reality continues to ruin my life." - Calvin.
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH 7/8] Kconfig: silicon backplane dependency.
2007-04-22 7:53 ` Martin Schwidefsky
@ 2007-04-22 9:46 ` Michael Buesch
2007-04-23 11:16 ` Martin Schwidefsky
0 siblings, 1 reply; 11+ messages in thread
From: Michael Buesch @ 2007-04-22 9:46 UTC (permalink / raw)
To: schwidefsky; +Cc: Arnd Bergmann, linux-kernel, linux-s390, akpm, linville
On Sunday 22 April 2007 09:53, Martin Schwidefsky wrote:
> On Sun, 2007-04-22 at 01:19 +0200, Arnd Bergmann wrote:
> > > diff -urpN linux-2.6/drivers/ssb/Kconfig linux-2.6-patched/drivers/ssb/Kconfig
> > > --- linux-2.6/drivers/ssb/Kconfig 2007-04-19 15:24:40.000000000 +0200
> > > +++ linux-2.6-patched/drivers/ssb/Kconfig 2007-04-19 15:55:44.000000000 +0200
> > > @@ -1,4 +1,5 @@
> > > menu "Sonics Silicon Backplane"
> > > + depends on PCI || PCMCIA
> >
> > No, this doesn't look right. There are other devices that come with
> > SiliconBackplane but are not PCI or PCMCIA style devices.
>
> Yes, Michael already told me about that. The current solution is to use
> !S390, could we use HAS_IOMEM instead ?
I'd think either should be fine.
--
Greetings Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 7/8] Kconfig: silicon backplane dependency.
2007-04-22 9:46 ` Michael Buesch
@ 2007-04-23 11:16 ` Martin Schwidefsky
2007-04-23 11:22 ` Arnd Bergmann
0 siblings, 1 reply; 11+ messages in thread
From: Martin Schwidefsky @ 2007-04-23 11:16 UTC (permalink / raw)
To: Michael Buesch; +Cc: Arnd Bergmann, linux-kernel, linux-s390, akpm, linville
On Sun, 2007-04-22 at 11:46 +0200, Michael Buesch wrote:
> > > No, this doesn't look right. There are other devices that come with
> > > SiliconBackplane but are not PCI or PCMCIA style devices.
> >
> > Yes, Michael already told me about that. The current solution is to use
> > !S390, could we use HAS_IOMEM instead ?
>
> I'd think either should be fine.
I will use HAS_IOMEM then. The oddity with the select statement still
exists though. I have to add the "depends on HAS_IOMEM" to SSB and B44.
If I just add it to SSB then the config option for B44 exists for s390
and you can enable it. The select statement will then enable SSB as well
(.config contains CONFIG_SSB=y for allyesconfig). This is in
contradiction to the depends statement since HAS_IOMEM=n on s390.
The current Kconfig code does not check all select statements if they
can be enabled before allowing the config option that does the select.
So the rule for using select statements is that the depends line of the
config option that selects another config option needs to be at least as
restrictive as the depends line of the selected option. Hence I'll add
the HAS_IOMEM depends to B44 as well. Okay ?
--
blue skies, IBM Deutschland Entwicklung GmbH
Martin Vorsitzender des Aufsichtsrats: Johann Weihen
Geschäftsführung: Herbert Kircher
Martin Schwidefsky Sitz der Gesellschaft: Böblingen
Linux on zSeries Registergericht: Amtsgericht Stuttgart,
Development HRB 243294
"Reality continues to ruin my life." - Calvin.
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH 7/8] Kconfig: silicon backplane dependency.
2007-04-23 11:16 ` Martin Schwidefsky
@ 2007-04-23 11:22 ` Arnd Bergmann
2007-04-23 11:27 ` Martin Schwidefsky
0 siblings, 1 reply; 11+ messages in thread
From: Arnd Bergmann @ 2007-04-23 11:22 UTC (permalink / raw)
To: schwidefsky; +Cc: Michael Buesch, linux-kernel, linux-s390, akpm, linville
On Monday 23 April 2007, Martin Schwidefsky wrote:
> The current Kconfig code does not check all select statements if they
> can be enabled before allowing the config option that does the select.
> So the rule for using select statements is that the depends line of the
> config option that selects another config option needs to be at least as
> restrictive as the depends line of the selected option. Hence I'll add
> the HAS_IOMEM depends to B44 as well. Okay ?
Isn't B44 already behind a WIRELESS or IEEE80211 or similar option that
can't be selected on s390?
Arnd <><
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 7/8] Kconfig: silicon backplane dependency.
2007-04-23 11:22 ` Arnd Bergmann
@ 2007-04-23 11:27 ` Martin Schwidefsky
2007-04-23 11:48 ` Arnd Bergmann
0 siblings, 1 reply; 11+ messages in thread
From: Martin Schwidefsky @ 2007-04-23 11:27 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: Michael Buesch, linux-kernel, linux-s390, akpm, linville
On Mon, 2007-04-23 at 13:22 +0200, Arnd Bergmann wrote:
> > The current Kconfig code does not check all select statements if they
> > can be enabled before allowing the config option that does the select.
> > So the rule for using select statements is that the depends line of the
> > config option that selects another config option needs to be at least as
> > restrictive as the depends line of the selected option. Hence I'll add
> > the HAS_IOMEM depends to B44 as well. Okay ?
>
> Isn't B44 already behind a WIRELESS or IEEE80211 or similar option that
> can't be selected on s390?
No, the option can be found in drivers/net/Kconfig under menu "Ethernet
(10 or 100Mbit)".
--
blue skies, IBM Deutschland Entwicklung GmbH
Martin Vorsitzender des Aufsichtsrats: Johann Weihen
Geschäftsführung: Herbert Kircher
Martin Schwidefsky Sitz der Gesellschaft: Böblingen
Linux on zSeries Registergericht: Amtsgericht Stuttgart,
Development HRB 243294
"Reality continues to ruin my life." - Calvin.
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH 7/8] Kconfig: silicon backplane dependency.
2007-04-23 11:27 ` Martin Schwidefsky
@ 2007-04-23 11:48 ` Arnd Bergmann
2007-04-23 14:37 ` Michael Buesch
0 siblings, 1 reply; 11+ messages in thread
From: Arnd Bergmann @ 2007-04-23 11:48 UTC (permalink / raw)
To: schwidefsky; +Cc: Michael Buesch, linux-kernel, linux-s390, akpm, linville
On Monday 23 April 2007, Martin Schwidefsky wrote:
>
> > Isn't B44 already behind a WIRELESS or IEEE80211 or similar option that
> > can't be selected on s390?
>
> No, the option can be found in drivers/net/Kconfig under menu "Ethernet
> (10 or 100Mbit)".
Ah, I was confusing it with b43.
Depends on HAS_IOMEM sounds good then. I'd prefer to make it
'depends on SSB' instead of 'select SSB', but I don't want to get into
that argument ;-)
Arnd <><
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 7/8] Kconfig: silicon backplane dependency.
2007-04-23 11:48 ` Arnd Bergmann
@ 2007-04-23 14:37 ` Michael Buesch
0 siblings, 0 replies; 11+ messages in thread
From: Michael Buesch @ 2007-04-23 14:37 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: schwidefsky, linux-kernel, linux-s390, akpm, linville
On Monday 23 April 2007 13:48, Arnd Bergmann wrote:
> On Monday 23 April 2007, Martin Schwidefsky wrote:
> >
> > > Isn't B44 already behind a WIRELESS or IEEE80211 or similar option that
> > > can't be selected on s390?
> >
> > No, the option can be found in drivers/net/Kconfig under menu "Ethernet
> > (10 or 100Mbit)".
>
> Ah, I was confusing it with b43.
>
> Depends on HAS_IOMEM sounds good then. I'd prefer to make it
> 'depends on SSB' instead of 'select SSB', but I don't want to get into
> that argument ;-)
No, don't.
Add depends on to SSB and B44.
--
Greetings Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-04-23 14:38 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-20 11:35 [PATCH 7/8] Kconfig: silicon backplane dependency Martin Schwidefsky
2007-04-20 20:45 ` Michael Buesch
2007-04-21 6:28 ` Martin Schwidefsky
2007-04-21 23:19 ` Arnd Bergmann
2007-04-22 7:53 ` Martin Schwidefsky
2007-04-22 9:46 ` Michael Buesch
2007-04-23 11:16 ` Martin Schwidefsky
2007-04-23 11:22 ` Arnd Bergmann
2007-04-23 11:27 ` Martin Schwidefsky
2007-04-23 11:48 ` Arnd Bergmann
2007-04-23 14:37 ` Michael Buesch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox