diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-12-23 08:48:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-23 22:09:08 -0500 |
commit | 50d6ec552bdd4d9227fe9ed2bac819eced3170ac (patch) | |
tree | fafb7d8fb9f62825b9e6e46bf349439ae39100e4 /drivers/net | |
parent | 1a1284ef97ca79ba747d211b697e996a248a8555 (diff) |
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')
-rw-r--r-- | drivers/net/sfc/qt202x_phy.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/sfc/qt202x_phy.c b/drivers/net/sfc/qt202x_phy.c index 326ffa49fbd2..ff8f0a417fa3 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) | |||
87 | old_counter = counter; | 87 | old_counter = counter; |
88 | else if (counter != old_counter) | 88 | else if (counter != old_counter) |
89 | break; | 89 | break; |
90 | if (time_after(jiffies, timeout)) | 90 | if (time_after(jiffies, timeout)) { |
91 | /* Some cables have EEPROMs that conflict with the | ||
92 | * PHY's on-board EEPROM so it cannot load firmware */ | ||
93 | EFX_ERR(efx, "If an SFP+ direct attach cable is" | ||
94 | " connected, please check that it complies" | ||
95 | " with the SFP+ specification\n"); | ||
91 | return -ETIMEDOUT; | 96 | return -ETIMEDOUT; |
97 | } | ||
92 | msleep(QT2025C_HEARTB_WAIT); | 98 | msleep(QT2025C_HEARTB_WAIT); |
93 | } | 99 | } |
94 | 100 | ||