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)
commit66d29cbc59433ba538922a9e958495156b31b83b
tree50deb9e367290d70d12d79935c3ec2acd6475cb4
parentfa2b04f4502d74659e4e4b1294c6d88e08ece032
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