]> asedeno.scripts.mit.edu Git - linux.git/commit
pinctrl: armada-37xx: add suspend/resume support
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 26 Jun 2018 14:06:13 +0000 (16:06 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 29 Jun 2018 12:41:10 +0000 (14:41 +0200)
commit6a230edd5d6e02655ad3a7ac718f521e96b9830c
tree269fd58de13369e8ccf1571613bf184095d2d3c2
parent6c5d0736e9c09f00f5549f20390d6daae98a1bfd
pinctrl: armada-37xx: add suspend/resume support

Add suspend/resume hooks in pinctrl driver to handle S2RAM operations.

Beyond the traditional register save/restore operations, these hooks
also keep the GPIOs used for both-edge IRQ synchronized between their
level (low/high) and expected IRQ polarity (falling/rising edge).

Since pinctrl is an infrastructure module, its resume should be issued
prior to other IO drivers. The pinctrl PM operations are requested at
early/late stages for this reason.

Suggested-by: Ken Ma <make@marvell.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c