linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Buesch <mb@bu3sch.de>
To: Larry Finger <Larry.Finger@lwfinger.net>
Cc: John Linville <linville@tuxdriver.com>,
	Bcm43xx-dev@lists.berlios.de, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] bcm43xx: Fix machine check on PPC for version 1 PHY
Date: Sun, 25 Mar 2007 16:13:23 +0200	[thread overview]
Message-ID: <200703251613.23880.mb@bu3sch.de> (raw)
In-Reply-To: <46067d12.1uF8l72xIYAG6Vyb%Larry.Finger@lwfinger.net>

On Sunday 25 March 2007 15:45, Larry Finger wrote:
> From: David Woodhouse <dwmw2@infradead.org>
> 
> Recent changes in the specs that were introduced in commit 
> 740ac4fb08866d702be90f167665d03759bd27d0 were incorrect and resulted in machine check
> errors on the PPC architecture for G PHY's with a revision number equal to 1. The
> two offending changes are reverted.

I'm not sure this patch is complete.
Joseph made changes to the specs that should fix the issue completely.
I didn't look at the changes, yet.

> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> ---
> 
> John,
> 
> This fix should be applied to wireless-2.6 and set to 'upstream-fixes'. I hope is makes
> it into 2.6.21 before the final release. The debugging of this issue was mostly done
> by David with additional help by Pavil Roskin.
> 
> Larry
> 
> 
> Index: wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_phy.c
> ===================================================================
> --- wireless-2.6.orig/drivers/net/wireless/bcm43xx/bcm43xx_phy.c
> +++ wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_phy.c
> @@ -762,7 +762,7 @@ static void bcm43xx_phy_initb5(struct bc
>  	if (radio->version == 0x2050)
>  		bcm43xx_phy_write(bcm, 0x0038, 0x0667);
>  
> -	if (phy->type == BCM43xx_PHYTYPE_G) {
> +	if (phy->connected) {
>  		if (radio->version == 0x2050) {
>  			bcm43xx_radio_write16(bcm, 0x007A,
>  					      bcm43xx_radio_read16(bcm, 0x007A)
> @@ -1197,7 +1197,7 @@ static void bcm43xx_phy_initg(struct bcm
>  		bcm43xx_phy_write(bcm, 0x0811, 0x0400);
>  		bcm43xx_phy_write(bcm, 0x0015, 0x00C0);
>  	}
> -	if (phy->connected) {
> +	if (phy->rev >= 2 && phy->connected) {
>  		tmp = bcm43xx_phy_read(bcm, 0x0400) & 0xFF;
>  		if (tmp < 6) {
>  			bcm43xx_phy_write(bcm, 0x04C2, 0x1816);
> 
> 

-- 
Greetings Michael.

  reply	other threads:[~2007-03-25 14:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-25 13:45 [PATCH] bcm43xx: Fix machine check on PPC for version 1 PHY Larry Finger
2007-03-25 14:13 ` Michael Buesch [this message]
2007-03-25 16:53   ` David Woodhouse
2007-03-25 18:23     ` Larry Finger
2007-03-25 18:29       ` David Woodhouse
2007-03-26  2:33   ` Larry Finger
2007-03-26 12:13     ` David Woodhouse
2007-03-26 20:39       ` Michael Buesch
2007-03-25 15:22 ` Pavel Roskin
2007-03-25 16:20   ` Larry Finger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200703251613.23880.mb@bu3sch.de \
    --to=mb@bu3sch.de \
    --cc=Bcm43xx-dev@lists.berlios.de \
    --cc=Larry.Finger@lwfinger.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).