summaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-12-23 13:48:42 +0000
committerDavid S. Miller <davem@davemloft.net>2009-12-23 19:09:08 -0800
commit50d6ec552bdd4d9227fe9ed2bac819eced3170ac (patch)
treefafb7d8fb9f62825b9e6e46bf349439ae39100e4 /drivers/net/sfc
parent1a1284ef97ca79ba747d211b697e996a248a8555 (diff)
downloadop-kernel-dev-50d6ec552bdd4d9227fe9ed2bac819eced3170ac.zip
op-kernel-dev-50d6ec552bdd4d9227fe9ed2bac819eced3170ac.tar.gz
sfc: QT2025C: Add error message for suspected bad SFP+ cables
Some cables have EEPROMs that conflict with the PHY's on-board EEPROM so it cannot load firmware. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r--drivers/net/sfc/qt202x_phy.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/sfc/qt202x_phy.c b/drivers/net/sfc/qt202x_phy.c
index 326ffa4..ff8f0a4 100644
--- a/drivers/net/sfc/qt202x_phy.c
+++ b/drivers/net/sfc/qt202x_phy.c
@@ -87,8 +87,14 @@ static int qt2025c_wait_heartbeat(struct efx_nic *efx)
old_counter = counter;
else if (counter != old_counter)
break;
- if (time_after(jiffies, timeout))
+ if (time_after(jiffies, timeout)) {
+ /* Some cables have EEPROMs that conflict with the
+ * PHY's on-board EEPROM so it cannot load firmware */
+ EFX_ERR(efx, "If an SFP+ direct attach cable is"
+ " connected, please check that it complies"
+ " with the SFP+ specification\n");
return -ETIMEDOUT;
+ }
msleep(QT2025C_HEARTB_WAIT);
}
OpenPOWER on IntegriCloud