Check EEPROM twice in em_hardware_init(), because for some PCIe em(4) first
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 23 Jan 2007 11:09:25 +0000 (11:09 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 23 Jan 2007 11:09:25 +0000 (11:09 +0000)
commiteb1b9f95df8461745094f0db450e295eaf12a78f
tree2922234ce0dd5bcde0725dcd9ccd7ecb55338202
parenteebfcc982a581f9dcf8723035dc90c97dda854a8
Check EEPROM twice in em_hardware_init(), because for some PCIe em(4) first
checking will fail if link is down.  Add comment about it.

This should solve the problem for Lenovo/IBM laptop users: if link is down,
then em(4) will not be initialized properly.

Submitted-and-Tested-by: Michal Belczyk <belczyk@bsd.krakow.pl>
Obtained-from: FreeBSD current list, Jack Vogel <jfvogel@gmail.com>
sys/dev/netif/em/if_em.c