]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: samsung: fix suspend/resume functionality
authorDoug Anderson <dianders@chromium.org>
Fri, 17 May 2013 04:33:18 +0000 (21:33 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 27 May 2013 13:37:08 +0000 (15:37 +0200)
commitbdfbcdc11e5f99031f7c4a142f219055224708a8
tree2529a1916b63869dd6b7d418c2e190094371fe49
parentd67f0f7f01eb8b278d2ffe137361076878c8bb76
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 <prathyush.k@samsung.com> but
rewritten by Doug Anderson <dianders@chromium.org>.

Signed-off-by: Prathyush K <prathyush.k@samsung.com>
Signed-off-by: Doug Anderson <dianders@chromium.org>
Tested-by: Tomasz Figa <t.figa@samsung.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-samsung.c
drivers/pinctrl/pinctrl-samsung.h