Skip to content

Commit f11fc4b

Browse files
zhang-ruirafaeljw
authored andcommitted
ACPI / LPSS: Force LPSS quirks on boot
Commit 12864ff (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: 12864ff (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+: 12864ff (ACPI / LPSS: Avoid ...) Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 5736184 commit f11fc4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/acpi_lpss.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ static void acpi_lpss_dismiss(struct device *dev)
879879
#define LPSS_GPIODEF0_DMA_LLP BIT(13)
880880

881881
static DEFINE_MUTEX(lpss_iosf_mutex);
882-
static bool lpss_iosf_d3_entered;
882+
static bool lpss_iosf_d3_entered = true;
883883

884884
static void lpss_iosf_enter_d3_state(void)
885885
{

0 commit comments

Comments
 (0)