]> git.baikalelectronics.ru Git - kernel.git/commit
benet: Wait f/w POST until timeout
authorGavin Shan <shangw@linux.vnet.ibm.com>
Sun, 3 Mar 2013 21:48:46 +0000 (21:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Mar 2013 07:47:06 +0000 (02:47 -0500)
commit8ca09616e011b11cb95a9661cfdc2fbce61aece6
tree50deb9e367290d70d12d79935c3ec2acd6475cb4
parentcfaea977bd4fc95647bc46bbaaab1017553a7728
benet: Wait f/w POST until timeout

While PCI card faces EEH errors, reset (usually hot reset) is
expected to recover from the EEH errors. After EEH core finishes
the reset, the driver callback (be_eeh_reset) is called and wait
the firmware to complete POST successfully. The original code would
return with error once detecting failure during POST stage. That
seems not enough.

The patch forces the driver (be_eeh_reset) to wait the firmware
completes POST until timeout, instead of returning error upon
detection POST failure immediately. Also, it would improve the
reliability of the EEH funtionality of the driver.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Acked-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c