pinctrl: baytrail: Save pin context over system sleep
authorMika Westerberg <[email protected]>
Mon, 23 Feb 2015 12:53:13 +0000 (14:53 +0200)
committerLinus Walleij <[email protected]>
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 <[email protected]>
Signed-off-by: Mika Westerberg <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
drivers/pinctrl/intel/pinctrl-baytrail.c