aboutsummaryrefslogtreecommitdiff
path: root/sfpid.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2015-08-16 04:05:18 +0200
committerBen Hutchings <ben@decadent.org.uk>2015-09-05 11:47:54 +0100
commit0b2a8f107caadb1183825f1068d32eddcca500b4 (patch)
treeced9359539f276133fbdd0dc645a52315acc8f4e /sfpid.c
parent3fc124c361bbc047afcbfd54baf4de963699e762 (diff)
downloadethtool-0b2a8f107caadb1183825f1068d32eddcca500b4.tar.gz
ethtool: Dump eeprom info for soldered on modules
Modules which are soldered onto the motherboard may also use the sff8079 EEPROM format. Dump these in the same way as SFP modules. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'sfpid.c')
-rw-r--r--sfpid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfpid.c b/sfpid.c
index b1a5044..0b5cd62 100644
--- a/sfpid.c
+++ b/sfpid.c
@@ -401,7 +401,7 @@ static void sff8079_show_options(const __u8 *id)
void sff8079_show_all(const __u8 *id)
{
sff8079_show_identifier(id);
- if ((id[0] == 0x03) && (id[1] == 0x04)) {
+ if (((id[0] == 0x02) || (id[0] == 0x03)) && (id[1] == 0x04)) {
sff8079_show_ext_identifier(id);
sff8079_show_connector(id);
sff8079_show_transceiver(id);