* [PATCH] b43: add default option to avoid duplicating device support with brcmsmac
@ 2012-01-11 20:53 John W. Linville
2012-01-11 21:03 ` Arend van Spriel
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: John W. Linville @ 2012-01-11 20:53 UTC (permalink / raw)
To: linux-wireless; +Cc: John W. Linville
Signed-off-by: John W. Linville <linville@tuxdriver.com>
---
drivers/net/wireless/b43/Kconfig | 5 +++++
drivers/net/wireless/b43/main.c | 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/b43/Kconfig b/drivers/net/wireless/b43/Kconfig
index b97a40e..8139fc7 100644
--- a/drivers/net/wireless/b43/Kconfig
+++ b/drivers/net/wireless/b43/Kconfig
@@ -31,6 +31,11 @@ config B43_BCMA
depends on B43 && BCMA
default y
+config B43_BCMA_EXTRA
+ bool "Support for devices also supported by brcmsmac"
+ depends on B43_BCMA
+ default n
+
config B43_SSB
bool
depends on B43 && SSB
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 989f654..e2e2d11 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -116,8 +116,10 @@ MODULE_PARM_DESC(pio, "Use PIO accesses by default: 0=DMA, 1=PIO");
#ifdef CONFIG_B43_BCMA
static const struct bcma_device_id b43_bcma_tbl[] = {
BCMA_CORE(BCMA_MANUF_BCM, BCMA_CORE_80211, 0x11, BCMA_ANY_CLASS),
+#ifdef CONFIG_B43_BCMA_EXTRA
BCMA_CORE(BCMA_MANUF_BCM, BCMA_CORE_80211, 0x17, BCMA_ANY_CLASS),
BCMA_CORE(BCMA_MANUF_BCM, BCMA_CORE_80211, 0x18, BCMA_ANY_CLASS),
+#endif
BCMA_CORE(BCMA_MANUF_BCM, BCMA_CORE_80211, 0x1D, BCMA_ANY_CLASS),
BCMA_CORETABLE_END
};
--
1.7.4.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] b43: add default option to avoid duplicating device support with brcmsmac
2012-01-11 20:53 [PATCH] b43: add default option to avoid duplicating device support with brcmsmac John W. Linville
@ 2012-01-11 21:03 ` Arend van Spriel
2012-01-11 21:07 ` John W. Linville
2012-01-12 16:11 ` Rafał Miłecki
2012-01-16 20:22 ` [PATCH v2] " John W. Linville
2 siblings, 1 reply; 11+ messages in thread
From: Arend van Spriel @ 2012-01-11 21:03 UTC (permalink / raw)
To: John W. Linville; +Cc: linux-wireless@vger.kernel.org
On 01/11/2012 09:53 PM, John W. Linville wrote:
> Signed-off-by: John W. Linville <linville@tuxdriver.com>
> ---
> drivers/net/wireless/b43/Kconfig | 5 +++++
> drivers/net/wireless/b43/main.c | 2 ++
> 2 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/wireless/b43/Kconfig b/drivers/net/wireless/b43/Kconfig
> +config B43_BCMA_EXTRA
> + bool "Support for devices also supported by brcmsmac"
> + depends on B43_BCMA
> + default n
If I am not mistaken the 'default n' is not really needed.
Gr. AvS
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] b43: add default option to avoid duplicating device support with brcmsmac
2012-01-11 21:03 ` Arend van Spriel
@ 2012-01-11 21:07 ` John W. Linville
0 siblings, 0 replies; 11+ messages in thread
From: John W. Linville @ 2012-01-11 21:07 UTC (permalink / raw)
To: Arend van Spriel; +Cc: linux-wireless@vger.kernel.org
On Wed, Jan 11, 2012 at 10:03:27PM +0100, Arend van Spriel wrote:
> On 01/11/2012 09:53 PM, John W. Linville wrote:
> > Signed-off-by: John W. Linville <linville@tuxdriver.com>
> > ---
> > drivers/net/wireless/b43/Kconfig | 5 +++++
> > drivers/net/wireless/b43/main.c | 2 ++
> > 2 files changed, 7 insertions(+), 0 deletions(-)
> >
> > diff --git a/drivers/net/wireless/b43/Kconfig b/drivers/net/wireless/b43/Kconfig
> > +config B43_BCMA_EXTRA
> > + bool "Support for devices also supported by brcmsmac"
> > + depends on B43_BCMA
> > + default n
>
> If I am not mistaken the 'default n' is not really needed.
But I _really_ mean it!! :-)
I'll drop that line in the final commit...
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] b43: add default option to avoid duplicating device support with brcmsmac
2012-01-11 20:53 [PATCH] b43: add default option to avoid duplicating device support with brcmsmac John W. Linville
2012-01-11 21:03 ` Arend van Spriel
@ 2012-01-12 16:11 ` Rafał Miłecki
2012-01-12 16:17 ` John W. Linville
2012-01-13 2:07 ` Julian Calaby
2012-01-16 20:22 ` [PATCH v2] " John W. Linville
2 siblings, 2 replies; 11+ messages in thread
From: Rafał Miłecki @ 2012-01-12 16:11 UTC (permalink / raw)
To: John W. Linville; +Cc: linux-wireless, b43-dev
2012/1/11 John W. Linville <linville@tuxdriver.com>:
> +config B43_BCMA_EXTRA
> + bool "Support for devices also supported by brcmsmac"
> + depends on B43_BCMA
> + default n
> +
Is this really *the* solution? I wonder if we can do whatever you're
trying to do in a better way? To let final users try both drivers
without recompiling kernel?
The description also isn't saying too much. I can't imagine anyone
taking decision advisedly other than "n, as it's the default". On
other hand, what should we put here? The whole comparison of drivers?
Can be hard, but I really think there should be more info.
--
Rafał
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] b43: add default option to avoid duplicating device support with brcmsmac
2012-01-12 16:11 ` Rafał Miłecki
@ 2012-01-12 16:17 ` John W. Linville
2012-01-13 1:32 ` Peter Stuge
2012-01-13 2:07 ` Julian Calaby
1 sibling, 1 reply; 11+ messages in thread
From: John W. Linville @ 2012-01-12 16:17 UTC (permalink / raw)
To: Rafał Miłecki; +Cc: linux-wireless, b43-dev
On Thu, Jan 12, 2012 at 05:11:50PM +0100, Rafał Miłecki wrote:
> 2012/1/11 John W. Linville <linville@tuxdriver.com>:
> > +config B43_BCMA_EXTRA
> > + bool "Support for devices also supported by brcmsmac"
> > + depends on B43_BCMA
> > + default n
> > +
>
> Is this really *the* solution? I wonder if we can do whatever you're
> trying to do in a better way? To let final users try both drivers
> without recompiling kernel?
Saying "y" would let users try both drivers. That is up to the
distros or other kernel builders to choose.
At present, they have no choice but to let the two drivers race to
see who gets loaded first or whatever. I imagine that some would
prefer to have an option that prevents that.
> The description also isn't saying too much. I can't imagine anyone
> taking decision advisedly other than "n, as it's the default". On
> other hand, what should we put here? The whole comparison of drivers?
> Can be hard, but I really think there should be more info.
More info could be put in a "---help---" section. The summary line
could be different as well, if you can think of a better way to
describe the issue. I am open to suggestions.
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] b43: add default option to avoid duplicating device support with brcmsmac
2012-01-12 16:17 ` John W. Linville
@ 2012-01-13 1:32 ` Peter Stuge
2012-01-13 19:20 ` John W. Linville
0 siblings, 1 reply; 11+ messages in thread
From: Peter Stuge @ 2012-01-13 1:32 UTC (permalink / raw)
To: John W. Linville; +Cc: Rafał Miłecki, linux-wireless, b43-dev
John W. Linville wrote:
> The summary line could be different as well, if you can think of a
> better way to describe the issue. I am open to suggestions.
I think these terms are clear:
Community b43 driver
Broadcom brcmsmac driver
How to apply them I leave up to you. :)
//Peter
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] b43: add default option to avoid duplicating device support with brcmsmac
2012-01-12 16:11 ` Rafał Miłecki
2012-01-12 16:17 ` John W. Linville
@ 2012-01-13 2:07 ` Julian Calaby
2012-01-13 19:20 ` John W. Linville
1 sibling, 1 reply; 11+ messages in thread
From: Julian Calaby @ 2012-01-13 2:07 UTC (permalink / raw)
To: Rafał Miłecki; +Cc: John W. Linville, linux-wireless, b43-dev
2012/1/13 Rafał Miłecki <zajec5@gmail.com>:
> 2012/1/11 John W. Linville <linville@tuxdriver.com>:
>> +config B43_BCMA_EXTRA
>> + bool "Support for devices also supported by brcmsmac"
>> + depends on B43_BCMA
>> + default n
>> +
>
> Is this really *the* solution? I wonder if we can do whatever you're
> trying to do in a better way? To let final users try both drivers
> without recompiling kernel?
Another issue is that this should arguably be default y if brcmsmac is disabled.
Thanks,
--
Julian Calaby
Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] b43: add default option to avoid duplicating device support with brcmsmac
2012-01-13 1:32 ` Peter Stuge
@ 2012-01-13 19:20 ` John W. Linville
0 siblings, 0 replies; 11+ messages in thread
From: John W. Linville @ 2012-01-13 19:20 UTC (permalink / raw)
To: Rafał Miłecki, linux-wireless, b43-dev
On Fri, Jan 13, 2012 at 02:32:48AM +0100, Peter Stuge wrote:
> John W. Linville wrote:
> > The summary line could be different as well, if you can think of a
> > better way to describe the issue. I am open to suggestions.
>
> I think these terms are clear:
>
> Community b43 driver
> Broadcom brcmsmac driver
>
> How to apply them I leave up to you. :)
Maybe you think that is clear, but it doesn't do much for me.
I could say "Support for devices already supported by the
Broadcom-supported brcmsmac driver"?
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] b43: add default option to avoid duplicating device support with brcmsmac
2012-01-13 2:07 ` Julian Calaby
@ 2012-01-13 19:20 ` John W. Linville
2012-01-13 21:52 ` Julian Calaby
0 siblings, 1 reply; 11+ messages in thread
From: John W. Linville @ 2012-01-13 19:20 UTC (permalink / raw)
To: Julian Calaby; +Cc: Rafał Miłecki, linux-wireless, b43-dev
On Fri, Jan 13, 2012 at 01:07:03PM +1100, Julian Calaby wrote:
> 2012/1/13 Rafał Miłecki <zajec5@gmail.com>:
> > 2012/1/11 John W. Linville <linville@tuxdriver.com>:
> >> +config B43_BCMA_EXTRA
> >> + bool "Support for devices also supported by brcmsmac"
> >> + depends on B43_BCMA
> >> + default n
> >> +
> >
> > Is this really *the* solution? I wonder if we can do whatever you're
> > trying to do in a better way? To let final users try both drivers
> > without recompiling kernel?
>
> Another issue is that this should arguably be default y if brcmsmac is disabled.
Can you help by suggesting the correct Kconfig magic to implement that?
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] b43: add default option to avoid duplicating device support with brcmsmac
2012-01-13 19:20 ` John W. Linville
@ 2012-01-13 21:52 ` Julian Calaby
0 siblings, 0 replies; 11+ messages in thread
From: Julian Calaby @ 2012-01-13 21:52 UTC (permalink / raw)
To: John W. Linville; +Cc: Rafał Miłecki, linux-wireless, b43-dev
John,
On Sat, Jan 14, 2012 at 06:20, John W. Linville <linville@tuxdriver.com> wrote:
> On Fri, Jan 13, 2012 at 01:07:03PM +1100, Julian Calaby wrote:
>> 2012/1/13 Rafał Miłecki <zajec5@gmail.com>:
>> > 2012/1/11 John W. Linville <linville@tuxdriver.com>:
>> >> +config B43_BCMA_EXTRA
>> >> + bool "Support for devices also supported by brcmsmac"
>> >> + depends on B43_BCMA
>> >> + default n
>> >> +
>> >
>> > Is this really *the* solution? I wonder if we can do whatever you're
>> > trying to do in a better way? To let final users try both drivers
>> > without recompiling kernel?
>>
>> Another issue is that this should arguably be default y if brcmsmac is disabled.
>
> Can you help by suggesting the correct Kconfig magic to implement that?
I believe that if you change your default line to:
default y if !BRCMSMAC
it should have the desired effect.
See the FONT_8x8 config option in drivers/video/console/Kconfig (line
#150) for an example.
Thanks,
--
Julian Calaby
Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v2] b43: add default option to avoid duplicating device support with brcmsmac
2012-01-11 20:53 [PATCH] b43: add default option to avoid duplicating device support with brcmsmac John W. Linville
2012-01-11 21:03 ` Arend van Spriel
2012-01-12 16:11 ` Rafał Miłecki
@ 2012-01-16 20:22 ` John W. Linville
2 siblings, 0 replies; 11+ messages in thread
From: John W. Linville @ 2012-01-16 20:22 UTC (permalink / raw)
To: linux-wireless
Cc: Rafał Miłecki, Arend van Spriel, Julian Calaby,
John W. Linville
Signed-off-by: John W. Linville <linville@tuxdriver.com>
---
The dual default lines were the only combination I could find that
actually defaulted to "N" if brcmsmac was already enabled and to "Y"
otherwise. If anyone knows better magic for this, then please speak-up!
drivers/net/wireless/b43/Kconfig | 6 ++++++
drivers/net/wireless/b43/main.c | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/b43/Kconfig b/drivers/net/wireless/b43/Kconfig
index b97a40e..edb4ab2 100644
--- a/drivers/net/wireless/b43/Kconfig
+++ b/drivers/net/wireless/b43/Kconfig
@@ -31,6 +31,12 @@ config B43_BCMA
depends on B43 && BCMA
default y
+config B43_BCMA_EXTRA
+ bool "Hardware support that overlaps with Broadcom-supported brcmsmac driver"
+ depends on B43_BCMA
+ default n if BRCMSMAC || BRCMSMAC_MODULE
+ default y
+
config B43_SSB
bool
depends on B43 && SSB
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 41c83d9..b1ae675 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -116,8 +116,10 @@ MODULE_PARM_DESC(pio, "Use PIO accesses by default: 0=DMA, 1=PIO");
#ifdef CONFIG_B43_BCMA
static const struct bcma_device_id b43_bcma_tbl[] = {
BCMA_CORE(BCMA_MANUF_BCM, BCMA_CORE_80211, 0x11, BCMA_ANY_CLASS),
+#ifdef CONFIG_B43_BCMA_EXTRA
BCMA_CORE(BCMA_MANUF_BCM, BCMA_CORE_80211, 0x17, BCMA_ANY_CLASS),
BCMA_CORE(BCMA_MANUF_BCM, BCMA_CORE_80211, 0x18, BCMA_ANY_CLASS),
+#endif
BCMA_CORE(BCMA_MANUF_BCM, BCMA_CORE_80211, 0x1D, BCMA_ANY_CLASS),
BCMA_CORETABLE_END
};
--
1.7.4.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
end of thread, other threads:[~2012-01-16 20:31 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-11 20:53 [PATCH] b43: add default option to avoid duplicating device support with brcmsmac John W. Linville
2012-01-11 21:03 ` Arend van Spriel
2012-01-11 21:07 ` John W. Linville
2012-01-12 16:11 ` Rafał Miłecki
2012-01-12 16:17 ` John W. Linville
2012-01-13 1:32 ` Peter Stuge
2012-01-13 19:20 ` John W. Linville
2012-01-13 2:07 ` Julian Calaby
2012-01-13 19:20 ` John W. Linville
2012-01-13 21:52 ` Julian Calaby
2012-01-16 20:22 ` [PATCH v2] " John W. Linville
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).