• Gavin Shan's avatar
    benet: Wait f/w POST until timeout · 66d29cbc
    Gavin Shan authored
    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: default avatarGavin Shan <shangw@linux.vnet.ibm.com>
    Acked-by: default avatarSathya Perla <sathya.perla@emulex.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    66d29cbc
be_cmds.c 77.5 KB