]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: disable service task during suspend
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 15 Jun 2015 22:00:51 +0000 (15:00 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 16 Sep 2015 00:05:18 +0000 (17:05 -0700)
commit77bb839ab4169df736aa6bc6f478912848bd808e
tree1e3b146affa9afc2ec441abca7708b569bed9440
parent82ba73a8e27bb0970a6ba690edabd28b986f24bd
fm10k: disable service task during suspend

The service task reads some registers as part of its normal routine,
even while the interface is down. Normally this is ok. However, during
suspend we have disabled the PCI device. Due to this, registers will
read in the same way as a surprise-remove event. Disable the service
task while we suspend, and re-enable it after we resume. If we don't do
this, the device could be UP when you suspend and come back from resume
as closed (since fm10k closes the device when it gets a surprise
remove).

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c