NET: Fix MAC addr handling for smc911x
authorSeunghyeon Rhee <seunghyeon@lpmtec.com>
Mon, 2 Nov 2009 08:00:00 +0000 (00:00 -0800)
committerBen Warren <biggerbadderben@gmail.com>
Mon, 1 Feb 2010 06:34:33 +0000 (22:34 -0800)
commit76771e595aa2640da8c7b5ea81bd9583ccdab8a1
tree41932ca3f015bfc61caaa51baffb1d61cbca862a
parent07c966066b977b24f4b08b1684eed130f463b4c6
NET: Fix MAC addr handling for smc911x

This patch turns off MAC address mismatch warning when
optional eeprom programmed with MAC address is not available.
In that case, smc911x's MAC address register has its default
value ff:ff:ff:ff:ff:ff and it's not a valid address. This
makes eth_initialize() show the warning which has no
meaningful information while environment variable ethaddr
overrides the address read from the register. If there's no
eeprom and the value of MAC address register is not valid
after initialization, dev->enetaddr had better not be updated
and maintain its initial value 00:00:00:00:00:00, which I
think is what eth_initialize() expects. This is not a bug fix.
Even without this patch, the driver works fine. It's just for
enhancing the way of displaying messages.

Signed-off-by: Seunghyeon Rhee <seunghyeon@lpmtec.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
drivers/net/smc911x.c