linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] b43legacy: fix bcm4303 crash
@ 2008-04-06 15:05 Stefano Brivio
  2008-04-06 15:20 ` Michael Buesch
  2008-04-06 15:29 ` Larry Finger
  0 siblings, 2 replies; 4+ messages in thread
From: Stefano Brivio @ 2008-04-06 15:05 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, bcm43xx-dev

This fixes an hard crash which happened upon driver loading on bcm4303 rev.
2 devices.

Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
---
John, this is for 2.6.26.
---
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c
index e123719..4bc0e8b 100644
--- a/drivers/ssb/main.c
+++ b/drivers/ssb/main.c
@@ -1101,6 +1101,12 @@ int ssb_bus_may_powerdown(struct ssb_bus *bus)
 		goto out;
 
 	cc = &bus->chipco;
+
+	if (!cc->dev)
+		goto out;
+	if (cc->dev->id.revision < 5)
+		goto out;
+
 	ssb_chipco_set_clockmode(cc, SSB_CLKMODE_SLOW);
 	err = ssb_pci_xtal(bus, SSB_GPIO_XTAL | SSB_GPIO_PLL, 0);
 	if (err)


--
Ciao
Stefano

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

* Re: [PATCH] b43legacy: fix bcm4303 crash
  2008-04-06 15:05 [PATCH] b43legacy: fix bcm4303 crash Stefano Brivio
@ 2008-04-06 15:20 ` Michael Buesch
  2008-04-06 15:54   ` Stefano Brivio
  2008-04-06 15:29 ` Larry Finger
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Buesch @ 2008-04-06 15:20 UTC (permalink / raw)
  To: bcm43xx-dev; +Cc: Stefano Brivio, John W. Linville, linux-wireless

On Sunday 06 April 2008 17:05:07 Stefano Brivio wrote:
> This fixes an hard crash which happened upon driver loading on bcm4303 rev.
> 2 devices.
> 
> Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>

ACK

> ---
> John, this is for 2.6.26.

Why not 2.6.25?

> ---
> diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c
> index e123719..4bc0e8b 100644
> --- a/drivers/ssb/main.c
> +++ b/drivers/ssb/main.c
> @@ -1101,6 +1101,12 @@ int ssb_bus_may_powerdown(struct ssb_bus *bus)
>  		goto out;
>  
>  	cc = &bus->chipco;
> +
> +	if (!cc->dev)
> +		goto out;
> +	if (cc->dev->id.revision < 5)
> +		goto out;
> +
>  	ssb_chipco_set_clockmode(cc, SSB_CLKMODE_SLOW);
>  	err = ssb_pci_xtal(bus, SSB_GPIO_XTAL | SSB_GPIO_PLL, 0);
>  	if (err)
> 
> 
> --
> Ciao
> Stefano
> _______________________________________________
> Bcm43xx-dev mailing list
> Bcm43xx-dev@lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/bcm43xx-dev
> 
> 



-- 
Greetings Michael.

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

* Re: [PATCH] b43legacy: fix bcm4303 crash
  2008-04-06 15:05 [PATCH] b43legacy: fix bcm4303 crash Stefano Brivio
  2008-04-06 15:20 ` Michael Buesch
@ 2008-04-06 15:29 ` Larry Finger
  1 sibling, 0 replies; 4+ messages in thread
From: Larry Finger @ 2008-04-06 15:29 UTC (permalink / raw)
  To: Stefano Brivio; +Cc: John W. Linville, linux-wireless, bcm43xx-dev

Stefano Brivio wrote:
> This fixes an hard crash which happened upon driver loading on bcm4303 rev.
> 2 devices.
> 
> Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
> ---
> John, this is for 2.6.26.

Shouldn't this be for 2.6.25?

Larry


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

* Re: [PATCH] b43legacy: fix bcm4303 crash
  2008-04-06 15:20 ` Michael Buesch
@ 2008-04-06 15:54   ` Stefano Brivio
  0 siblings, 0 replies; 4+ messages in thread
From: Stefano Brivio @ 2008-04-06 15:54 UTC (permalink / raw)
  To: Michael Buesch; +Cc: bcm43xx-dev, John W. Linville, linux-wireless

On Sun, 6 Apr 2008 17:20:02 +0200
Michael Buesch <mb@bu3sch.de> wrote:

> On Sunday 06 April 2008 17:05:07 Stefano Brivio wrote:
> > This fixes an hard crash which happened upon driver loading on bcm4303 rev.
> > 2 devices.
> > 
> > Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
> 
> ACK
> 
> > ---
> > John, this is for 2.6.26.
> 
> Why not 2.6.25?

Sorry, typo. Yes, i meant 2.6.25.


--
Ciao
Stefano

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

end of thread, other threads:[~2008-04-06 15:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-06 15:05 [PATCH] b43legacy: fix bcm4303 crash Stefano Brivio
2008-04-06 15:20 ` Michael Buesch
2008-04-06 15:54   ` Stefano Brivio
2008-04-06 15:29 ` Larry Finger

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).