netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ethtool: Dump eeprom info for soldered on modules
@ 2015-08-16  2:05 Andrew Lunn
  2015-09-01  8:52 ` Andrew Lunn
  2015-09-05 10:48 ` Ben Hutchings
  0 siblings, 2 replies; 3+ messages in thread
From: Andrew Lunn @ 2015-08-16  2:05 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: netdev, Andrew Lunn

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>
---
 sfpid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-05 19:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-16  2:05 [PATCH] ethtool: Dump eeprom info for soldered on modules Andrew Lunn
2015-09-01  8:52 ` Andrew Lunn
2015-09-05 10:48 ` Ben Hutchings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).