OpenCloudOS-Kernel/drivers/net/atlx
Radu Cristescu 58c7821c42 atl1: relax eeprom mac address error check
The atl1 driver tries to determine the MAC address thusly:

	- If an EEPROM exists, read the MAC address from EEPROM and
	  validate it.
	- If an EEPROM doesn't exist, try to read a MAC address from
	  SPI flash.
	- If that fails, try to read a MAC address directly from the
	  MAC Station Address register.
	- If that fails, assign a random MAC address provided by the
	  kernel.

We now have a report of a system fitted with an EEPROM containing all
zeros where we expect the MAC address to be, and we currently handle
this as an error condition.  Turns out, on this system the BIOS writes
a valid MAC address to the NIC's MAC Station Address register, but we
never try to read it because we return an error when we find the all-
zeros address in EEPROM.

This patch relaxes the error check and continues looking for a MAC
address even if it finds an illegal one in EEPROM.

Signed-off-by: Radu Cristescu <advantis@gmx.net>
Signed-off-by: Jay Cliburn <jacliburn@bellsouth.net>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2008-06-17 23:09:21 -04:00
..
Makefile atl1: move common functions to atlx files 2008-03-17 07:49:23 -04:00
atl1.c atl1: relax eeprom mac address error check 2008-06-17 23:09:21 -04:00
atl1.h atl1: bump version number 2008-05-13 01:30:25 -04:00
atlx.c atl1: bump version number 2008-05-13 01:30:25 -04:00
atlx.h atl1: bump version number 2008-05-13 01:30:25 -04:00