pinctrl: baytrail: Save pin context over system sleep
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 23 Feb 2015 12:53:13 +0000 (14:53 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 6 Mar 2015 11:25:07 +0000 (12:25 +0100)
commitfcc18deb7682dafcf6176b4af81d1554ffabd8b1
treecba808b4e42bd101c396751fd11e9d65fe01cf4b
parent31e4329f99062a06dca5a493bb4495a63b2dc6ba
pinctrl: baytrail: Save pin context over system sleep

The BIOS might reconfigure pins as it needs when S3 is entered. This might
cause drivers using the GPIOs to fail because the state was wrong or
interrupts stopped working.

Fix this by saving and restoring enough pin context over system sleep.

Reported-by: Hans Holmberg <hans.holmberg@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-baytrail.c