ACPI / LPSS: Avoid PM quirks on suspend and resume from S3
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Jun 2018 11:17:26 +0000 (13:17 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 14 Jun 2018 07:57:56 +0000 (09:57 +0200)
commita09c591306881dfb04387c6ee7b7e2e4683fa531
treee5ede692c136d09f0989d68b602fd860d27abb4c
parentd290ef9305ebaaac884ae0350bfc243dd01d354d
ACPI / LPSS: Avoid PM quirks on suspend and resume from S3

It is reported that commit a192aa923b66a (ACPI / LPSS: Consolidate
runtime PM and system sleep handling) introduced a system suspend
regression on some machines, but the only functional change made by
it was to cause the PM quirks in the LPSS to also be used during
system suspend and resume.  While that should always work for
suspend-to-idle, it turns out to be problematic for S3
(suspend-to-RAM).

To address that issue restore the previous S3 suspend and resume
behavior of the LPSS to avoid applying PM quirks then.

Fixes: a192aa923b66a (ACPI / LPSS: Consolidate runtime PM and system sleep handling)
Link: https://bugs.launchpad.net/bugs/1774950
Reported-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: 4.15+ <stable@vger.kernel.org> # 4.15+
drivers/acpi/acpi_lpss.c