• Michael Chan's avatar
    bnxt_en: Enhance retry of the first message to the firmware. · 861aae78
    Michael Chan authored
    Two enhancements:
    
    1. Read the health status first before sending the first
    HWRM_VER_GET message to firmware instead of the other way around.
    This guarantees we got the accurate health status before we attempt
    to send the message.
    
    2. We currently only retry sending the first HWRM_VER_GET message to
    the firmware if the firmware is in the process of booting.  If the
    firmware is in error state and is doing core dump for example, the
    driver should also retry if the health register has the RECOVERING
    flag set.  This flag indicates the firmware will undergo recovery
    soon.  Modify the retry logic to retry for this case as well.
    Reviewed-by: default avatarEdwin Peer <edwin.peer@broadcom.com>
    Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    861aae78
bnxt.h 67.4 KB