projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a1284e
)
sfc: QT2025C: Add error message for suspected bad SFP+ cables
author
Ben Hutchings
<
[email protected]
>
Wed, 23 Dec 2009 13:48:42 +0000
(13:48 +0000)
committer
David S. Miller
<
[email protected]
>
Thu, 24 Dec 2009 03:09:08 +0000
(19:09 -0800)
Some cables have EEPROMs that conflict with the PHY's on-board EEPROM
so it cannot load firmware.
Signed-off-by: Ben Hutchings <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/sfc/qt202x_phy.c
patch
|
blob
|
history
diff --git
a/drivers/net/sfc/qt202x_phy.c
b/drivers/net/sfc/qt202x_phy.c
index 326ffa49fbd23d292f0a2892f88246e3c1e8f723..ff8f0a417fa3effb8b508cb7ac2681447da7247a 100644
(file)
--- 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);
}