smsc911x: allow mac address to be saved before device reset
commit31f4574774e98aa275aeeee94f41ce042285ed8e
authorSteve Glendinning <steve.glendinning@smsc.com>
Tue, 27 Jan 2009 06:51:12 +0000 (27 06:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Feb 2009 08:37:22 +0000 (1 00:37 -0800)
treeb7e843691852eb3efd2b2409e791f7b77bf6ebb9
parentd23f028a4ddce8b783c212bfe911d1d307ff3617
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>
drivers/net/smsc911x.c
include/linux/smsc911x.h