[Bug 99847] [BAT][IVB] Suspend tests fail due to e1000 driver failing to suspend
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Feb 17 12:30:03 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=99847
--- Comment #2 from Chris Wilson <chris at chris-wilson.co.uk> ---
diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c
b/drivers/net/ethernet/intel/e1000e/netdev.c
index eccf1da9356b..429a5210230d 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -6615,12 +6615,19 @@ static int e1000e_pm_thaw(struct device *dev)
static int e1000e_pm_suspend(struct device *dev)
{
struct pci_dev *pdev = to_pci_dev(dev);
+ int rc;
e1000e_flush_lpic(pdev);
e1000e_pm_freeze(dev);
- return __e1000_shutdown(pdev, false);
+ rc = __e1000_shutdown(pdev, false);
+ if (rc) {
+ e1000e_pm_thaw(dev);
+ return rc;
+ }
+
+ return 0;
}
static int e1000e_pm_resume(struct device *dev)
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20170217/8085306d/attachment.html>
More information about the intel-gfx-bugs
mailing list