]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
igb: Fix an issue that PME is not enabled during runtime suspend
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Mon, 3 Dec 2018 05:54:38 +0000 (13:54 +0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 20 Dec 2018 20:14:23 +0000 (12:14 -0800)
commit1fb3a7a75e2efcc83ef21f2434069cddd6fae6f5
tree0c504f454371ad8f38b48ac2a6065381aa340541
parenteec903769b4ea476591ffff73bb7359f14f38c51
igb: Fix an issue that PME is not enabled during runtime suspend

I210 ethernet card doesn't wakeup when a cable gets plugged. It's
because its PME is not set.

Since commit 42eca2302146 ("PCI: Don't touch card regs after runtime
suspend D3"), if the PCI state is saved, pci_pm_runtime_suspend() stops
calling pci_finish_runtime_suspend(), which enables the PCI PME.

To fix the issue, let's not to save PCI states when it's runtime
suspend, to let the PCI subsystem enables PME.

Fixes: 42eca2302146 ("PCI: Don't touch card regs after runtime suspend D3")
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c