]> git.baikalelectronics.ru Git - kernel.git/commit
smsc911x: allow mac address to be saved before device reset
authorSteve Glendinning <steve.glendinning@smsc.com>
Tue, 27 Jan 2009 06:51:12 +0000 (06:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Feb 2009 08:37:22 +0000 (00:37 -0800)
commitb3b6fff8635c751a899c32f8562032a0f2be3ccd
treeb7e843691852eb3efd2b2409e791f7b77bf6ebb9
parentfbadf2637a37fcc7105b6552ffee795a9ef4b13b
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