]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
pinctrl/amd: save pin registers over suspend/resume
authorDaniel Drake <drake@endlessm.com>
Mon, 11 Sep 2017 06:11:56 +0000 (14:11 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 28 Sep 2017 14:30:58 +0000 (10:30 -0400)
commit31260e270c2f274fad36dc9bc7ceec3c44cc4395
tree859f3436e55cf12f7f5ba941fa03092675e8f3d0
parentbf46b450f51252ed42c9957a8704e171484bc2ec
pinctrl/amd: save pin registers over suspend/resume

BugLink: http://bugs.launchpad.net/bugs/1720154
commit 79d2c8bede2c93f9432d7da0bc2f76a195c90fc0 upstream.

The touchpad in the Asus laptop models X505BA/BP and X542BA/BP is
unresponsive after suspend/resume. The following error appears during
resume:

  i2c_hid i2c-ELAN1300:00: failed to reset device.

The problem here is that i2c_hid does not notice the interrupt being
generated at this point, because the GPIO is no longer configured
for interrupts.

Fix this by saving pinctrl-amd pin registers during suspend and
restoring them at resume time.

Based on code from pinctrl-intel.

Signed-off-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/pinctrl/pinctrl-amd.c
drivers/pinctrl/pinctrl-amd.h