On Wed, 2005-08-17 at 23:35 -0700, Grant Grundler wrote:
> Dave, Michael,
> I was looking at a new problem Matthew Wilcox reported:
>       tg3 networking failed on rx8620 IOX Core LAN
> 

Grant, Please see if this patch fixes the problem. It is for the latest
tg3 in 2.6.13-rc. 

[TG3]: Fix SerDes detection

A problem was reported by Grant Grundler on an HP rx8620 system where
the copper NIC was detected as SerDes. In this case, the eeprom had the
SerDes bit mistakenly set, causing the driver to detect that it was
SerDes.

This patch will override the SerDes bit in the eeprom if a valid PHY ID
is read from the MII registers on older 570x chips where the MII
interface is not used on SerDes chips. On newer chips such as the 5780
that use MII for both copper and SerDes, SerDes detection must rely on
the eeprom.

This patch will make the SerDes detection identical to versions 3.25 and
older.

diff -urp a/drivers/net/tg3.c b/drivers/net/tg3.c
--- a/drivers/net/tg3.c 2005-08-18 09:29:53.093304976 -0700
+++ b/drivers/net/tg3.c 2005-08-18 09:33:03.123416008 -0700
@@ -8970,6 +8970,8 @@ static int __devinit tg3_phy_probe(struc
                tp->phy_id = hw_phy_id;
                if (hw_phy_id_masked == PHY_ID_BCM8002)
                        tp->tg3_flags2 |= TG3_FLG2_PHY_SERDES;
+               else
+                       tp->tg3_flags2 &= ~TG3_FLG2_PHY_SERDES;
        } else {
                if (tp->phy_id != PHY_ID_INVALID) {
                        /* Do nothing, phy ID already set up in


-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to