aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/tg3.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 003ab53cf613..d726da8c5930 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -1363,8 +1363,11 @@ static void tg3_adjust_link(struct net_device *dev)
1363 1363
1364 if (phydev->speed == SPEED_100 || phydev->speed == SPEED_10) 1364 if (phydev->speed == SPEED_100 || phydev->speed == SPEED_10)
1365 mac_mode |= MAC_MODE_PORT_MODE_MII; 1365 mac_mode |= MAC_MODE_PORT_MODE_MII;
1366 else 1366 else if (phydev->speed == SPEED_1000 ||
1367 GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5785)
1367 mac_mode |= MAC_MODE_PORT_MODE_GMII; 1368 mac_mode |= MAC_MODE_PORT_MODE_GMII;
1369 else
1370 mac_mode |= MAC_MODE_PORT_MODE_MII;
1368 1371
1369 if (phydev->duplex == DUPLEX_HALF) 1372 if (phydev->duplex == DUPLEX_HALF)
1370 mac_mode |= MAC_MODE_HALF_DUPLEX; 1373 mac_mode |= MAC_MODE_HALF_DUPLEX;