]> git.karo-electronics.de Git - linux-beck.git/commit
pinctrl: cherryview: Save and restore pin configs over system sleep
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 4 Dec 2014 10:32:50 +0000 (12:32 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 10 Jan 2015 21:47:22 +0000 (22:47 +0100)
commit9eb457b547cc731bc2fc251bd79891a60c64fc3e
tree172cfa5afbf64eef973fb6151d2882dd601cfa25
parentb7392d2247cfe6771f95d256374f1a8e6a6f48d6
pinctrl: cherryview: Save and restore pin configs over system sleep

Before resuming from system sleep BIOS restores its view of pin
configuration. If we have configured some pins differently from that, for
instance some driver requested a pin as a GPIO but it was not in GPIO mode
originally, our view of the pin configuration will not match the hardware
state anymore.

This patch saves the pin configuration and interrupt mask registers on
suspend and restores them on exit. This should make sure that the
previously configured state is still in effect.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-cherryview.c