]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/net/tg3.c
[TG3]: 5780 PHY fixes
authorMichael Chan <mchan@broadcom.com>
Tue, 27 Sep 2005 19:12:42 +0000 (12:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Sep 2005 19:12:42 +0000 (12:12 -0700)
commitc94e39418ab6eccf863581f4e0d847da0080b2d3
treed7b38279d14d93160ffaed214898973fb2062061
parent667347f1ca7e099f6833551f194cf2bcc778871b
[TG3]: 5780 PHY fixes

Fix 5780 PHY related problems:

1. MAC_RX_MODE reset must be done before setting up the MAC_MODE
   register on 5705_PLUS chips or the chip will stop receiving after
   a while. The MAC_RX_MODE reset is needed to prevent intermittently
   losing the first receive packet on serdes chips.

2. Skip MAC loopback test on 5780 because of hardware errata. Normal
   traffic including PHY loopback is not affected by the errata.

3. PHY loopback fails intermittently on 5708S and this is fixed by
   putting the PHY in loopback mode first before programming the MAC
   mode register. A MAC_RX_MODE reset is also added.

4. Return -EINVAL in tg3_nway_reset() if device is in TBI mode. Allow
   nway_reset if 5780S is in parallel detect mode.

5. Add missing PHY IDs in KNOWN_PHY_ID() macro.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
drivers/net/tg3.h