]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / LPSS: Force LPSS quirks on boot
authorZhang Rui <rui.zhang@intel.com>
Mon, 3 Sep 2018 02:00:07 +0000 (10:00 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 6 Sep 2018 10:23:25 +0000 (12:23 +0200)
commitfa4790d7f9a277a04471aca145f9fa3645755d67
treec3b7959b8d6421bbe60b65cbcdd283a4cc845eaf
parent72c947294252cbe2f65f649bd9bf0ffe56abd5f0
ACPI / LPSS: Force LPSS quirks on boot

Commit 5ad14e651c6a (ACPI / LPSS: Avoid PM quirks on suspend and resume
from hibernation) bypasses lpss quirks for S3 and S4, by setting a flag
for S3/S4 in acpi_lpss_suspend(), and check that flag in
acpi_lpss_resume().

But this overlooks the boot case where acpi_lpss_resume() may get called
without a corresponding acpi_lpss_suspend() having been called.

Thus force setting the flag during boot.

Fixes: 5ad14e651c6a (ACPI / LPSS: Avoid PM quirks on suspend and resume from hibernation)
Link: https://bugzilla.kernel.org/show_bug.cgi?id=200989
Reported-and-tested-by: William Lieurance <william.lieurance@namikoda.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Cc: 4.15+ <stable@vger.kernel.org> # 4.15+: 5ad14e651c6a (ACPI / LPSS: Avoid ...)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_lpss.c