]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Handle firmware reset status during IF_UP.
authorMichael Chan <michael.chan@broadcom.com>
Fri, 30 Aug 2019 03:54:52 +0000 (23:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 21:02:18 +0000 (14:02 -0700)
commit4af3befeb07cacbfe1a5b2504fab37ce04627971
tree03e211c41ac3594d15f927b241c5a50f07698837
parent6c03a8549dfae52e080b54a5848356b4fae42849
bnxt_en: Handle firmware reset status during IF_UP.

During IF_UP, newer firmware has a new status flag that indicates that
firmware has reset.  Add new function bnxt_fw_init_one() to re-probe the
firmware and re-setup VF resources on the PF if necessary.  If the
re-probe fails, set a flag to prevent bnxt_open() from proceeding again.

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.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h