ACPI / EC: Restore polling during noirq suspend/resume phases
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 9 Feb 2018 21:55:28 +0000 (22:55 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Feb 2018 09:29:31 +0000 (10:29 +0100)
commit3cd091a773936c54344a519f7ee1379ccb620bee
tree1fb91eb3b634c3327fdde061b9a3e93d481bb9dd
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
ACPI / EC: Restore polling during noirq suspend/resume phases

Commit 662591461c4b (ACPI / EC: Drop EC noirq hooks to fix a
regression) modified the ACPI EC driver so that it doesn't switch
over to busy polling mode during noirq stages of system suspend and
resume in an attempt to fix an issue resulting from that behavior.

However, that modification introduced a system resume regression on
Thinkpad X240, so make the EC driver switch over to the polling mode
during noirq stages of system suspend and resume again, which
effectively reverts the problematic commit.

Fixes: 662591461c4b (ACPI / EC: Drop EC noirq hooks to fix a regression)
Link: https://bugzilla.kernel.org/show_bug.cgi?id=197863
Reported-by: Markus Demleitner <m@tfiu.de>
Tested-by: Markus Demleitner <m@tfiu.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c