bnxt_en: Disable/enable Bus master during suspend/resume.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 24 Nov 2019 03:30:39 +0000 (22:30 -0500)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Sun, 24 Nov 2019 22:48:02 +0000 (14:48 -0800)
commitef02af8c8ece3d6fb01fe267c1c7622399bc34f6
treedc88c00bc0243fa856f4a4040cfb5d1eec2fa625
parentfb4cd81e4c03efa54b82e81e2a4afc092c061384
bnxt_en: Disable/enable Bus master during suspend/resume.

Disable Bus master during suspend to prevent DMAs after the device
goes into D3hot state.  The new 57500 devices may continue to DMA
from context memory after the system goes into D3hot state.  This
may cause some PCIe errors on some system.  Re-enable it during resume.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c