diff options
author | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2006-08-16 14:28:14 -0400 |
---|---|---|
committer | Auke Kok <juke-jan.h.kok@intel.com> | 2006-08-16 14:28:14 -0400 |
commit | 60ffa478759f39a2eb3be1ed179bc3764804b2c8 (patch) | |
tree | 6195728e45ff7228968a164e44f48bc8bd9b7ca9 /drivers | |
parent | 09e590e5d5a93f2eaa748a89c623258e6bad1648 (diff) |
e100: Fix MDIO/MDIO-X
MDIO/MDIO-X was broken due to a wrong errata. Removing the workaround
code fixes for affected NICs.
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/e100.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/net/e100.c b/drivers/net/e100.c index 91ef5f2fd768..5de9843d972d 100644 --- a/drivers/net/e100.c +++ b/drivers/net/e100.c | |||
@@ -1391,15 +1391,11 @@ static int e100_phy_init(struct nic *nic) | |||
1391 | } | 1391 | } |
1392 | 1392 | ||
1393 | if((nic->mac >= mac_82550_D102) || ((nic->flags & ich) && | 1393 | if((nic->mac >= mac_82550_D102) || ((nic->flags & ich) && |
1394 | (mdio_read(netdev, nic->mii.phy_id, MII_TPISTATUS) & 0x8000))) { | 1394 | (mdio_read(netdev, nic->mii.phy_id, MII_TPISTATUS) & 0x8000) && |
1395 | /* enable/disable MDI/MDI-X auto-switching. | 1395 | !(nic->eeprom[eeprom_cnfg_mdix] & eeprom_mdix_enabled))) { |
1396 | MDI/MDI-X auto-switching is disabled for 82551ER/QM chips */ | 1396 | /* enable/disable MDI/MDI-X auto-switching. */ |
1397 | if((nic->mac == mac_82551_E) || (nic->mac == mac_82551_F) || | 1397 | mdio_write(netdev, nic->mii.phy_id, MII_NCONFIG, |
1398 | (nic->mac == mac_82551_10) || (nic->mii.force_media) || | 1398 | nic->mii.force_media ? 0 : NCONFIG_AUTO_SWITCH); |
1399 | !(nic->eeprom[eeprom_cnfg_mdix] & eeprom_mdix_enabled)) | ||
1400 | mdio_write(netdev, nic->mii.phy_id, MII_NCONFIG, 0); | ||
1401 | else | ||
1402 | mdio_write(netdev, nic->mii.phy_id, MII_NCONFIG, NCONFIG_AUTO_SWITCH); | ||
1403 | } | 1399 | } |
1404 | 1400 | ||
1405 | return 0; | 1401 | return 0; |