From 0749b406bb4864caaa420046ae27b3fca3e169fe Mon Sep 17 00:00:00 2001 From: Michael Chan Date: Mon, 30 Aug 2004 01:43:00 -0700 Subject: [PATCH] [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: David S. Miller --- drivers/net/tg3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 69d19d2165092..4afe42eae5283 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c @@ -5604,7 +5604,8 @@ static void tg3_timer(unsigned long __opaque) need_setup = 1; } 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; } if (need_setup) { -- 2.53.0