]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Improve the IRQ disable sequence during shutdown.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 29 Dec 2016 17:13:33 +0000 (12:13 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 21:35:17 +0000 (13:35 -0800)
commited0d8d1a8e2efbf4c2582d9cf98a319b498c781c
tree60c016c87c9d5fa30057394ceac32aba3f2747c7
parent2a566036548d3b25fbc725642f5df4afbf87f403
bnxt_en: Improve the IRQ disable sequence during shutdown.

Orabug: 25645429

The IRQ is disabled by writing to the completion ring doorbell.  This
should be done before the hardware completion ring is freed for correctness.
The current code disables IRQs after all the completion rings are freed.

Fix it by calling bnxt_disable_int_sync() before freeing the completion
rings.  Rearrange the code to avoid forward declaration.

Signed-off-by: Michael Chan <michael.chan@broadocm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 9d8bc09766f1a229b2d204c713a1cfc6c7fa1bb1)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c