ice: fix driver unload flow
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 9 Oct 2019 14:09:44 +0000 (07:09 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 7 Nov 2019 00:41:45 +0000 (16:41 -0800)
commitc6012ac1c35bc49fba0f133dffe233ae7d04a881
tree57837f38dd1c56578a1a58ac2e141bf0c75c14fc
parentcfbf13674be4ecb9a38048cd228c382825807b12
ice: fix driver unload flow

As part of the driver unload flow, a PF reset is issued which may still
cause an interrupt to be generated by the device.  Do not clear the
interrupt scheme until the reset is complete and there are no pending
transactions otherwise a hardware error may occur.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c