]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:03:08 +0000 (22:03 -0800)
commit71999b9012d10aa4e887bf07b57de95d7f87ecd8
treed4e09d2a59204377cfbf537092bda769f48935d9
parent21307a8ada35f034e261d310f1d6c2559a57f2dd
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>
Orabug: 25394529
(cherry picked from commit e40296628bec7400f529927eef4bc87cb425a22a)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c