From: Mika Westerberg Date: Thu, 4 Dec 2014 10:32:50 +0000 (+0200) Subject: pinctrl: cherryview: Save and restore pin configs over system sleep X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~123^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9eb457b547cc731bc2fc251bd79891a60c64fc3e;p=pandora-kernel.git 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 Signed-off-by: Linus Walleij --- Reading git-diff-tree failed