public inbox for b43-dev@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] ssb: drop BCM4328 hack for SPROM revision
@ 2010-11-17 18:52 Rafał Miłecki
  2010-11-18  0:12 ` Michael Gerdau
  0 siblings, 1 reply; 3+ messages in thread
From: Rafał Miłecki @ 2010-11-17 18:52 UTC (permalink / raw)
  To: linux-wireless, John W. Linville, Michael Gerdau
  Cc: b43-dev, Rafał Miłecki

This hacks leads to incorrect SPROM parsing for me and reading for example MAC
as: 00:00:00:54:00:00. Michael G. who introduced this confirmed it is not
needed anymore.

Signed-off-by: Rafa? Mi?ecki <zajec5@gmail.com>
---
Michael: I guess I could add your Tested-by. Is that right?

John: it's 2.6.38 ofc. It should apply cleanly no matter if you applied my
previous patch for guessing unknown SPROM revision. There is not dependence
between that 2 patches.
---
 drivers/ssb/pci.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c
index b5343ac..f529663 100644
--- a/drivers/ssb/pci.c
+++ b/drivers/ssb/pci.c
@@ -580,10 +580,6 @@ static int sprom_extract(struct ssb_bus *bus, struct ssb_sprom *out,
 		 * Always extract r1. */
 		out->revision = 1;
 		ssb_dprintk(KERN_DEBUG PFX "SPROM treated as revision %d\n", out->revision);
-	} else if (bus->chip_id == 0x4321) {
-		/* the BCM4328 has a chipid == 0x4321 and a rev 4 SPROM */
-		out->revision = 4;
-		ssb_dprintk(KERN_DEBUG PFX "SPROM treated as revision %d\n", out->revision);
 	}
 
 	switch (out->revision) {
-- 
1.6.0.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] ssb: drop BCM4328 hack for SPROM revision
  2010-11-18  0:12 ` Michael Gerdau
@ 2010-11-17 23:08   ` Rafał Miłecki
  0 siblings, 0 replies; 3+ messages in thread
From: Rafał Miłecki @ 2010-11-17 23:08 UTC (permalink / raw)
  To: Michael Gerdau; +Cc: linux-wireless, John W. Linville, b43-dev

W dniu 18 listopada 2010 01:12 u?ytkownik Michael Gerdau <mgd@qata.de> napisa?:
>> This hacks leads to incorrect SPROM parsing for me and reading for
>> example MAC as: 00:00:00:54:00:00. Michael G. who introduced this
>> confirmed it is not needed anymore.
>>
>> Signed-off-by: Rafa? Mi?ecki <zajec5@gmail.com>
>> ---
>> Michael: I guess I could add your Tested-by. Is that right?
>
> That ist right. I suppose the correct entry would be
> Tested-by: Michael Gerdau <mgd@qata.de>

John: can you add this, please?

-- 
Rafa?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] ssb: drop BCM4328 hack for SPROM revision
  2010-11-17 18:52 [PATCH] ssb: drop BCM4328 hack for SPROM revision Rafał Miłecki
@ 2010-11-18  0:12 ` Michael Gerdau
  2010-11-17 23:08   ` Rafał Miłecki
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Gerdau @ 2010-11-18  0:12 UTC (permalink / raw)
  To: Rafał Miłecki; +Cc: linux-wireless, John W. Linville, b43-dev

> This hacks leads to incorrect SPROM parsing for me and reading for
> example MAC as: 00:00:00:54:00:00. Michael G. who introduced this
> confirmed it is not needed anymore.
> 
> Signed-off-by: Rafa? Mi?ecki <zajec5@gmail.com>
> ---
> Michael: I guess I could add your Tested-by. Is that right?

That ist right. I suppose the correct entry would be
Tested-by: Michael Gerdau <mgd@qata.de>

> John: it's 2.6.38 ofc. It should apply cleanly no matter if you applied
> my previous patch for guessing unknown SPROM revision. There is not
> dependence between that 2 patches.
> ---
>  drivers/ssb/pci.c |    4 ----
>  1 files changed, 0 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c
> index b5343ac..f529663 100644
> --- a/drivers/ssb/pci.c
> +++ b/drivers/ssb/pci.c
> @@ -580,10 +580,6 @@ static int sprom_extract(struct ssb_bus *bus, struct
> ssb_sprom *out, * Always extract r1. */
>  		out->revision = 1;
>  		ssb_dprintk(KERN_DEBUG PFX "SPROM treated as revision %d\n",
> out->revision); -	} else if (bus->chip_id == 0x4321) {
> -		/* the BCM4328 has a chipid == 0x4321 and a rev 4 SPROM */
> -		out->revision = 4;
> -		ssb_dprintk(KERN_DEBUG PFX "SPROM treated as revision %d\n",
> out->revision); }
> 
>  	switch (out->revision) {


-- 
 Michael Gerdau       email: mgd at qata.de
 GPG-keys available on request or at public keyserver
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.infradead.org/pipermail/b43-dev/attachments/20101118/465405ee/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-18  0:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-17 18:52 [PATCH] ssb: drop BCM4328 hack for SPROM revision Rafał Miłecki
2010-11-18  0:12 ` Michael Gerdau
2010-11-17 23:08   ` Rafał Miłecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox