mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ACPI / LPSS: Force LPSS quirks on boot
Commit12864ff854(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:12864ff854(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 <[email protected]> Signed-off-by: Zhang Rui <[email protected]> Cc: 4.15+ <[email protected]> # 4.15+:12864ff854(ACPI / LPSS: Avoid ...) Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
57361846b5
commit
f11fc4bc66
1 changed files with 1 additions and 1 deletions
|
|
@ -879,7 +879,7 @@ static void acpi_lpss_dismiss(struct device *dev)
|
|||
#define LPSS_GPIODEF0_DMA_LLP BIT(13)
|
||||
|
||||
static DEFINE_MUTEX(lpss_iosf_mutex);
|
||||
static bool lpss_iosf_d3_entered;
|
||||
static bool lpss_iosf_d3_entered = true;
|
||||
|
||||
static void lpss_iosf_enter_d3_state(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue