Commit 0749b406 authored by Michael Chan's avatar Michael Chan Committed by David S. Miller

[TG3]: Check MAC_STATUS_SIGNAL_DET in serdes polling.

Otherwise we do not handle properly the case
where the switch/hub does not support auto-
negotiation.  This is what was breaking 5704
hw fiber autoneg.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 23c1627f
...@@ -5604,7 +5604,8 @@ static void tg3_timer(unsigned long __opaque) ...@@ -5604,7 +5604,8 @@ static void tg3_timer(unsigned long __opaque)
need_setup = 1; need_setup = 1;
} }
if (! netif_carrier_ok(tp->dev) && if (! netif_carrier_ok(tp->dev) &&
(mac_stat & MAC_STATUS_PCS_SYNCED)) { (mac_stat & (MAC_STATUS_PCS_SYNCED |
MAC_STATUS_SIGNAL_DET))) {
need_setup = 1; need_setup = 1;
} }
if (need_setup) { if (need_setup) {
......
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