mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 09:46:51 +07:00
smsc95xx: fix register dump of last register
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> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
481705a172
commit
9624531701
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user