1
0
Fork 0
alistair23-linux/drivers/net/e1000e
Bruce Allan e243455d34 e1000e: check return code from NVM accesses and fix bank detection
Check return code for all NVM accesses[1] and error out accordingly; log
a debug message for failed accesses.

For ICH8/9, the valid NVM bank detect function was not checking whether the
SEC1VAL (sector 1 valid) bit in the EECD register was itself valid (bits 8
and 9 also have to be set).  If invalid, it would have defaulted to the
possibly invalid bank 0.  Instead, try to use the valid bank detection
method used by ICH10 which has been cleaned up a bit.

[1] - reads and updates only; not writes because those are only writing to
the Shadow RAM, the update following the write is the only thing actually
writing the modified Shadow RAM contents to the NVM.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-11-21 17:02:41 -08:00
..
82571.c e1000e: check return code from NVM accesses and fix bank detection 2008-11-21 17:02:41 -08:00
Makefile e1000e: reformat comment blocks, cosmetic changes only 2008-03-28 22:14:56 -04:00
defines.h e1000e: check return code from NVM accesses and fix bank detection 2008-11-21 17:02:41 -08:00
e1000.h e1000e: fix incorrect link status when switch module pulled 2008-11-21 17:01:35 -08:00
es2lan.c e1000e: ESB2 config after link up 2008-11-21 16:53:51 -08:00
ethtool.c e1000e: check return code from NVM accesses and fix bank detection 2008-11-21 17:02:41 -08:00
hw.h e1000e: sync change flow control variables with ixgbe 2008-11-21 16:57:36 -08:00
ich8lan.c e1000e: check return code from NVM accesses and fix bank detection 2008-11-21 17:02:41 -08:00
lib.c e1000e: sync change flow control variables with ixgbe 2008-11-21 16:57:36 -08:00
netdev.c e1000e: check return code from NVM accesses and fix bank detection 2008-11-21 17:02:41 -08:00
param.c e1000e: fix IPMI traffic 2008-11-16 19:05:16 -08:00
phy.c e1000e: sync change flow control variables with ixgbe 2008-11-21 16:57:36 -08:00