Commit f5a04387 authored by David S. Miller's avatar David S. Miller

[TIGON3]: Fix link polarity setting on all non-5700 chips.

parent 8836286d
...@@ -1059,16 +1059,15 @@ static int tg3_setup_copper_phy(struct tg3 *tp) ...@@ -1059,16 +1059,15 @@ static int tg3_setup_copper_phy(struct tg3 *tp)
tp->mac_mode |= MAC_MODE_HALF_DUPLEX; tp->mac_mode |= MAC_MODE_HALF_DUPLEX;
tp->mac_mode &= ~MAC_MODE_LINK_POLARITY; tp->mac_mode &= ~MAC_MODE_LINK_POLARITY;
if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5701 || if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700) {
GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703) {
if (current_link_up == 1)
tp->mac_mode |= MAC_MODE_LINK_POLARITY;
tw32(MAC_LED_CTRL, LED_CTRL_PHY_MODE_1);
} else {
if ((tp->led_mode == led_mode_link10) || if ((tp->led_mode == led_mode_link10) ||
(current_link_up == 1 && (current_link_up == 1 &&
tp->link_config.active_speed == SPEED_10)) tp->link_config.active_speed == SPEED_10))
tp->mac_mode |= MAC_MODE_LINK_POLARITY; tp->mac_mode |= MAC_MODE_LINK_POLARITY;
} else {
if (current_link_up == 1)
tp->mac_mode |= MAC_MODE_LINK_POLARITY;
tw32(MAC_LED_CTRL, LED_CTRL_PHY_MODE_1);
} }
/* ??? Without this setting Netgear GA302T PHY does not /* ??? Without this setting Netgear GA302T PHY does not
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment