]> 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)
commita9de1ee3b83c42e548bb214efbb408875f7526a0
tree1e3b146affa9afc2ec441abca7708b569bed9440
parentb1eed9eb36f8e610569e02a7b3612257da78bd4a
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