Skip to content

Commit 967b08c

Browse files
committed
RTC: rtc-cmos: Fix wakeup from suspend-to-idle
Commit eed4d47 (ACPI / sleep: Ignore spurious SCI wakeups from suspend-to-idle) modified the core suspend-to-idle code to filter out spurious SCI interrupts received while suspended, which requires ACPI event source handlers to report wakeup events in a way that will trigger a wakeup from suspend to idle (or abort system suspends in progress, which is equivalent). That needs to be done in the rtc-cmos driver too, which was overlooked by the above commit, so do that now. Fixes: eed4d47 (ACPI / sleep: Ignore spurious SCI wakeups from suspend-to-idle) Reported-by: David E. Box <david.e.box@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 60d4553 commit 967b08c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/rtc/rtc-cmos.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ static u32 rtc_handler(void *context)
10851085
}
10861086
spin_unlock_irqrestore(&rtc_lock, flags);
10871087

1088-
pm_wakeup_event(dev, 0);
1088+
pm_wakeup_hard_event(dev);
10891089
acpi_clear_event(ACPI_EVENT_RTC);
10901090
acpi_disable_event(ACPI_EVENT_RTC, 0);
10911091
return ACPI_INTERRUPT_HANDLED;

0 commit comments

Comments
 (0)