[U-Boot] [PATCH 3/3] smc911x: do net reset the chip if no EEPROM is connected
Daniel Mack
daniel at caiaq.de
Wed Apr 8 13:23:39 CEST 2009
On boards without EEPROMs, don't reset the chip on U-Boot's exit so that
the MAC set by environment settings can be used by the OS later.
Signed-off-by: Daniel Mack <daniel at caiaq.de>
Cc: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/net/smc911x.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index 8c9a2a8..f777ae9 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -225,7 +225,9 @@ int eth_send(volatile void *packet, int length)
void eth_halt(void)
{
+#ifndef CONFIG_DRIVER_SMC911X_NO_EEPROM
smc911x_reset();
+#endif
}
int eth_rx(void)
--
1.6.2.1
More information about the U-Boot
mailing list