netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] smsc95xx: fix register dump of last register
@ 2012-12-10 11:03 Steve Glendinning
  2012-12-10 11:03 ` [PATCH 2/2] smsc95xx: fix async register writes on big endian platforms Steve Glendinning
  2012-12-10 19:10 ` [PATCH 1/2] smsc95xx: fix register dump of last register David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Steve Glendinning @ 2012-12-10 11:03 UTC (permalink / raw)
  To: netdev; +Cc: Steve Glendinning

This patch fixes the ethtool register dump for smsc95xx to dump
all 4 bytes of the final register (COE_CR) instead of just the
first byte.

Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
---
 drivers/net/usb/smsc95xx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
index f7e1e18..a00dcc4 100644
--- a/drivers/net/usb/smsc95xx.c
+++ b/drivers/net/usb/smsc95xx.c
@@ -691,7 +691,7 @@ static int smsc95xx_ethtool_set_eeprom(struct net_device *netdev,
 static int smsc95xx_ethtool_getregslen(struct net_device *netdev)
 {
 	/* all smsc95xx registers */
-	return COE_CR - ID_REV + 1;
+	return COE_CR - ID_REV + sizeof(u32);
 }
 
 static void
-- 
1.7.10.4

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

end of thread, other threads:[~2012-12-10 19:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-10 11:03 [PATCH 1/2] smsc95xx: fix register dump of last register Steve Glendinning
2012-12-10 11:03 ` [PATCH 2/2] smsc95xx: fix async register writes on big endian platforms Steve Glendinning
2012-12-10 19:10   ` David Miller
2012-12-10 19:10 ` [PATCH 1/2] smsc95xx: fix register dump of last register David Miller

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).