]> 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)
commit68f1af9247edc9df414c1e11973dc233b999f5c1
tree50deb9e367290d70d12d79935c3ec2acd6475cb4
parent0ac90cf9b412da96b8c979d2b216cdff4365009f
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