pinctrl: samsung: fix suspend/resume functionality
authorDoug Anderson <[email protected]>
Fri, 17 May 2013 04:33:18 +0000 (21:33 -0700)
committerLinus Walleij <[email protected]>
Mon, 27 May 2013 13:37:08 +0000 (15:37 +0200)
commitd9f998639f539613bb25cbbca380c81c892d586c
tree2529a1916b63869dd6b7d418c2e190094371fe49
parente4aa937ec75df0eea0bee03bffa3303ad36c986b
pinctrl: samsung: fix suspend/resume functionality

The GPIO states need to be restored after s2r and this is not currently
supported in the pinctrl driver. This patch saves the gpio states before
suspend and restores them after resume.

Saving and restoring is done very early using syscore_ops and must
happen before pins are released from their powerdown state.

Patch originally from Prathyush K <[email protected]> but
rewritten by Doug Anderson <[email protected]>.

Signed-off-by: Prathyush K <[email protected]>
Signed-off-by: Doug Anderson <[email protected]>
Tested-by: Tomasz Figa <[email protected]>
Acked-by: Kukjin Kim <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
drivers/pinctrl/pinctrl-samsung.c
drivers/pinctrl/pinctrl-samsung.h