smsc911x: allow mac address to be saved before device reset
Some platforms (for example pcm037) do not have an EEPROM fitted, instead storing their mac address somewhere else. The bootloader fetches this and configures the ethernet adapter before the kernel is started. This patch allows a platform to indicate to the driver via the SMSC911X_SAVE_MAC_ADDRESS flag that the mac address has already been configured via such a mechanism, and should be saved before resetting the chip. Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
d23f028a4d
commit
31f4574774
@@ -45,5 +45,6 @@ struct smsc911x_platform_config {
|
||||
#define SMSC911X_USE_32BIT (BIT(1))
|
||||
#define SMSC911X_FORCE_INTERNAL_PHY (BIT(2))
|
||||
#define SMSC911X_FORCE_EXTERNAL_PHY (BIT(3))
|
||||
#define SMSC911X_SAVE_MAC_ADDRESS (BIT(4))
|
||||
|
||||
#endif /* __LINUX_SMSC911X_H__ */
|
||||
|
Reference in New Issue
Block a user