diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-05-13 20:23:12 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-05-13 20:23:12 -0400 |
commit | 967b08c25a091867b04261fa34addedc950256f1 (patch) | |
tree | 80ea4fc55ac7451122cd8bd069e664a974f6cc25 | |
parent | 60d4553bdc1a0099adb544e12cafd7bbc7f1d484 (diff) |
RTC: rtc-cmos: Fix wakeup from suspend-to-idle
Commit eed4d47efe95 (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: eed4d47efe95 (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>
-rw-r--r-- | drivers/rtc/rtc-cmos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index f4a96dbdabf2..dabe47b9be72 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c | |||
@@ -1085,7 +1085,7 @@ static u32 rtc_handler(void *context) | |||
1085 | } | 1085 | } |
1086 | spin_unlock_irqrestore(&rtc_lock, flags); | 1086 | spin_unlock_irqrestore(&rtc_lock, flags); |
1087 | 1087 | ||
1088 | pm_wakeup_event(dev, 0); | 1088 | pm_wakeup_hard_event(dev); |
1089 | acpi_clear_event(ACPI_EVENT_RTC); | 1089 | acpi_clear_event(ACPI_EVENT_RTC); |
1090 | acpi_disable_event(ACPI_EVENT_RTC, 0); | 1090 | acpi_disable_event(ACPI_EVENT_RTC, 0); |
1091 | return ACPI_INTERRUPT_HANDLED; | 1091 | return ACPI_INTERRUPT_HANDLED; |