]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ssb: Clean up extraction of MAC addresses from SPROM
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 20 Aug 2008 22:45:06 +0000 (17:45 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 29 Aug 2008 20:24:07 +0000 (16:24 -0400)
commit31ce12fb3ebf88b054deb99ad729e84888bf6125
treec219fa9add1d2e40b446c680f4759d2cd57bf01a
parentf5fe1fdaae86a74d6977fafd8fdd8697e398dafd
ssb: Clean up extraction of MAC addresses from SPROM

Only rev 1 and 2 ssb SPROMs have fields named et0mac and et1mac;
however, all of the extraction routines extract pseudo data for these
fields from regions that are all 1's resulting in a hardware address
of FF:FF:FF:FF:FF:FF. This patch forces such a fill at the beginning of
the data extraction process, and only does the formal extraction if the
SPROM rev is 1 or 2.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/ssb/pci.c
include/linux/ssb/ssb_regs.h