]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb22e835f4d8fe753bf5f80e9ea41ae7efda4fa5
tree007e6ef5b3b64b7aaea8551e04b39a8b347fabda
parent05a4ce0626342bfd94b758eb806887781a8b4eb8
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