smsc9420: handle magic field of ethtool_eeprom
ethtool.h says the driver should set the magic field in get_eeprom and verify it in set_eeprom. This patch adds this functionality using an arbitary driver-specific magic value constant (0x9420). Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
62660e2808
commit
196b7e1b9c
@@ -44,6 +44,7 @@
|
||||
#define LAN_REGISTER_EXTENT (0x400)
|
||||
|
||||
#define SMSC9420_EEPROM_SIZE ((u32)11)
|
||||
#define SMSC9420_EEPROM_MAGIC (0x9420)
|
||||
|
||||
#define PKT_BUF_SZ (VLAN_ETH_FRAME_LEN + NET_IP_ALIGN + 4)
|
||||
|
||||
|
Reference in New Issue
Block a user