ACPI: PM: s2idle: Switch EC over to polling during "noirq" suspend
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 31 Jul 2019 09:05:33 +0000 (11:05 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Aug 2019 09:25:30 +0000 (11:25 +0200)
commitfcd0a04267ac7c5d5f9a27d2af824270f2091760
tree019c76df3cd9c2e53f08bcc0c96cafab568b496c
parent068b47d0984b8756ae71702a1a87aa226cb72fe8
ACPI: PM: s2idle: Switch EC over to polling during "noirq" suspend

Since the ACPI SCI is set up for system wakeup before the "noirq"
suspend of devices, it is better to make suspend-to-idle follow
suspend-to-RAM (S3) and switch over the EC to polling during "noirq"
suspend (and back to interrupt-based flow during "noirq" resume).

The frequency of spurious wakeup interrupts from the EC may be
reduced this way.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
drivers/acpi/ec.c