diff options
-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; |