summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt.h
diff options
context:
space:
mode:
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>2021-01-25 08:08:15 +0100
committerJakub Kicinski <kuba@kernel.org>2021-01-26 04:20:04 +0100
commit5d06eb5cb1f9da393eb47b8948d4367e69e48a62 (patch)
tree1ba1ae04b1232676f9b6ce06bb0158bcc88a62ad /drivers/net/ethernet/broadcom/bnxt/bnxt.h
parentbnxt_en: attempt to reinitialize after aborted reset (diff)
downloadlinux-5d06eb5cb1f9da393eb47b8948d4367e69e48a62.tar.xz
linux-5d06eb5cb1f9da393eb47b8948d4367e69e48a62.zip
bnxt_en: Retry open if firmware is in reset.
Firmware may be in the middle of reset when the driver tries to do ifup. In that case, firmware will return a special error code and the driver will retry 10 times with 50 msecs delay after each retry. Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/broadcom/bnxt/bnxt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h
index cbb338baab07..bd36f00ef28c 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h
@@ -1554,6 +1554,7 @@ struct bnxt_fw_reporter_ctx {
BNXT_FW_STATUS_HEALTHY)
#define BNXT_FW_RETRY 5
+#define BNXT_FW_IF_RETRY 10
struct bnxt {
void __iomem *bar0;