]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix AER recovery.
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Sun, 27 Dec 2020 19:18:17 +0000 (14:18 -0500)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Dec 2020 22:10:52 +0000 (14:10 -0800)
commit1541dc7bd15c474ec0e52d997a554aeeaaaaa30c
tree9c5ed4d9768fab231f42e4b6a0b33bdaa4fcbe8e
parentee81ef6b99c3dfc06ac35faa4daeab2d19e07d8e
bnxt_en: Fix AER recovery.

A recent change skips sending firmware messages to the firmware when
pci_channel_offline() is true during fatal AER error.  To make this
complete, we need to move the re-initialization sequence to
bnxt_io_resume(), otherwise the firmware messages to re-initialize
will all be skipped.  In any case, it is more correct to re-initialize
in bnxt_io_resume().

Also, fix the reverse x-mas tree format when defining variables
in bnxt_io_slot_reset().

Fixes: c19773f95ca6 ("bnxt_en: Avoid sending firmware messages when AER error is detected.")
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c