gpio: pca953x: Restore registers after suspend/resume cycle
authorMarek Vasut <marek.vasut@gmail.com>
Wed, 12 Dec 2018 01:40:02 +0000 (02:40 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 14 Dec 2018 14:19:26 +0000 (15:19 +0100)
commitb76574300504e56e2878ade185d5f47893512d25
tree007e6ef5b3b64b7aaea8551e04b39a8b347fabda
parent87813cf30a89012d77012347284ad7dd71c7b0b9
gpio: pca953x: Restore registers after suspend/resume cycle

It is possible that the PCA953x is powered down during suspend.
Use regmap cache to assure the registers in the PCA953x are in
line with the driver state after resume.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pca953x.c