[Regression] PCI / PM: Simplify device wakeup settings code

From: Joseph Salisbury
Date: Fri Apr 13 2018 - 13:56:35 EST


Hi Rafael,

A kernel bug report was opened against Ubuntu [0]. After a kernel
bisect, it was found that reverting the following two commits resolved
this bug:

0ce3fcaff929 ("PCI / PM: Restore PME Enable after config space restoration")
0847684cfc5f("PCI / PM: Simplify device wakeup settings code")
Â
This is a regression introduced in v4.13-rc1 and still exists in
mainline. The bug causes the battery to drain when the system is
powered down and unplugged, which does not happed prior to these two
commits. The bisect actually pointed to commit de3ef1e, but reverting
these two commits fixes the issue.
ÂÂÂÂ
I was hoping to get your feedback, since you are the patch author. Do
you think gathering any additional data will help diagnose this issue,
or would it be best to submit a revert request?
ÂÂÂ
ÂÂÂ
Thanks,

Joe

[0] http://pad.lv/1745646