]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: clear REQ and GNT in EECD (82571 && 82572)
authorRichard Alpe <richard.alpe@ericsson.com>
Fri, 20 Apr 2012 15:24:50 +0000 (15:24 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 5 May 2012 12:05:22 +0000 (05:05 -0700)
commit44a2ce12271158a91252bf6a72e7b26bff3a3a61
treebe6b3056c85a34fbc98af38389390d294df79c97
parent1712d6af3776f07ea135c019a0601abdcdd591bb
e1000e: clear REQ and GNT in EECD (82571 && 82572)

Clear the REQ and GNT bit in the eeprom control register (EECD).
This is required if the eeprom is to be accessed with auto read
EERD register.

After a cold reset this doesn't matter but if PBIST MAC test was
executed before booting, the register was left in a dirty state
(the 2 bits where set), which caused the read operation to time out
and returning 0.

Reference (page 312):
http://download.intel.com/design/network/manuals/316080.pdf

Reported-by: Aleksandar Igic <aleksandar.igic@dektech.com.au>
Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/82571.c