Skip to content

Commit

Permalink
igb: Exclude device from suspend direct complete optimization
Browse files Browse the repository at this point in the history
[ Upstream commit 5b6e132 ]

igb sets different WoL settings in system suspend callback and runtime
suspend callback.

The suspend direct complete optimization leaves igb in runtime suspended
state with wrong WoL setting during system suspend.

To fix this, we need to disable suspend direct complete optimization to
let igb always use suspend callback to set correct WoL during system
suspend.

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
khfeng authored and gregkh committed May 31, 2019
1 parent b6bc202 commit 561bd56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ethernet/intel/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3468,6 +3468,9 @@ static int igb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
break;
}
}

dev_pm_set_driver_flags(&pdev->dev, DPM_FLAG_NEVER_SKIP);

pm_runtime_put_noidle(&pdev->dev);
return 0;

Expand Down

0 comments on commit 561bd56

Please sign in to comment.