summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-amd.h
diff options
context:
space:
mode:
authorDaniel Drake <drake@endlessm.com>2017-09-11 06:11:56 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-27 12:39:19 (GMT)
commit6053a5fec5692f65b1dcf191ef88f147fc0f7525 (patch)
treedf1ef60f75515b214f0f747df84573c18dacd7af /drivers/pinctrl/pinctrl-amd.h
parent346abf2aca7faeea9f7d615239e94b37b0ee6df2 (diff)
downloadlinux-6053a5fec5692f65b1dcf191ef88f147fc0f7525.tar.xz
pinctrl/amd: save pin registers over suspend/resume
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>
Diffstat (limited to 'drivers/pinctrl/pinctrl-amd.h')
-rw-r--r--drivers/pinctrl/pinctrl-amd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-amd.h b/drivers/pinctrl/pinctrl-amd.h
index 7bfea47..e8bbb20 100644
--- a/drivers/pinctrl/pinctrl-amd.h
+++ b/drivers/pinctrl/pinctrl-amd.h
@@ -95,6 +95,7 @@ struct amd_gpio {
struct gpio_chip gc;
struct resource *res;
struct platform_device *pdev;
+ u32 *saved_regs;
};
/* KERNCZ configuration*/