]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Improve device shutdown method.
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Thu, 20 Feb 2020 22:26:34 +0000 (17:26 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Feb 2020 00:05:42 +0000 (16:05 -0800)
commit7dd23196b77fd0875a578d3f5c6d664acef1f452
tree782cc6e64aac4e9216cf673489c97f39960c157c
parent4827b25b4667a9fb617b5c8fd29afc29fb0d2182
bnxt_en: Improve device shutdown method.

Especially when bnxt_shutdown() is called during kexec, we need to
disable MSIX and disable Bus Master to completely quiesce the device.
Make these 2 calls unconditionally in the shutdown method.

Fixes: 704f7af87030 ("bnxt_en: Disable bus master during PCI shutdown and driver unload.")
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