[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <314260.5533.qm@web38904.mail.mud.yahoo.com>
Date: Wed, 22 Aug 2007 15:37:09 -0700 (PDT)
From: Kevin E <kevin360@...oo.com>
To: Stephen Hemminger <shemminger@...ux-foundation.org>
Cc: Willy Tarreau <w@....eu>, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [RFT] sky2: yukon-ec-u phy power problems
--- Stephen Hemminger
<shemminger@...ux-foundation.org> wrote:
> The sky2 driver clears some bits in the PHY control
> register, that cause
> the PHY interface to get changed. Some of these
> deal with voltage and power
> savings as well. This may explain some of the
> failures on Gigabyte DS-3 motherboard.
>
> The clue to possible problem was looking at why
> loading/unloading sky2 would
> break vendor sk98lin driver (ie what registers
> changed).
>
>
> --- a/drivers/net/sky2.c 2007-08-21
> 09:53:41.000000000 -0700
> +++ b/drivers/net/sky2.c 2007-08-21
> 09:53:43.000000000 -0700
> @@ -696,8 +696,8 @@ static void sky2_mac_init(struct
> sky2_hw
> int i;
> const u8 *addr = hw->dev[port]->dev_addr;
>
> - sky2_write32(hw, SK_REG(port, GPHY_CTRL),
> GPC_RST_SET);
> - sky2_write32(hw, SK_REG(port, GPHY_CTRL),
> GPC_RST_CLR);
> + sky2_write8(hw, SK_REG(port, GPHY_CTRL),
> GPC_RST_SET);
> + sky2_write8(hw, SK_REG(port, GPHY_CTRL),
> GPC_RST_CLR);
>
> sky2_write8(hw, SK_REG(port, GMAC_CTRL),
> GMC_RST_CLR);
>
This appears to have fixed the problem! I made the
change to the kernel on the broken MB and the link
stayed up. So I went ahead and made the change to the
kernel on the working one too. Right now I'm using
netcat to saturate the link and make sure it stays up.
So far it's looking good, if I have any problems I'll
let you know.
Thanks,
Kevin
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists