bnxt_en: Increase firmware response timeout for coredump commands.
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Mon, 18 Nov 2019 08:56:37 +0000 (03:56 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Nov 2019 01:13:28 +0000 (17:13 -0800)
Use the larger HWRM_COREDUMP_TIMEOUT value for coredump related
data response from the firmware.  These commands take longer than
normal commands.

Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c

index 7a5f6bf1701c3cf164df477c1f9a5d12a76e16f4..c5cd8d802f022f3eca75bcb012aed35629f9bfa0 100644 (file)
@@ -3040,7 +3040,8 @@ static int bnxt_hwrm_dbg_dma_data(struct bnxt *bp, void *msg, int msg_len,
        mutex_lock(&bp->hwrm_cmd_lock);
        while (1) {
                *seq_ptr = cpu_to_le16(seq);
-               rc = _hwrm_send_message(bp, msg, msg_len, HWRM_CMD_TIMEOUT);
+               rc = _hwrm_send_message(bp, msg, msg_len,
+                                       HWRM_COREDUMP_TIMEOUT);
                if (rc)
                        break;