]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
gpio: pca953x: Configure wake-up path when wake-up is enabled
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 20 Mar 2019 10:39:27 +0000 (11:39 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 8 Apr 2019 12:48:52 +0000 (14:48 +0200)
commitf70fbc15bae2c89ffd72f2693d462b12fe05d847
tree641a47a0b5f5987a87feaa1f0682d0f3a4381976
parenta71a81e7975843504170e69fe52605478f3c8e04
gpio: pca953x: Configure wake-up path when wake-up is enabled

If a device is part of the wake-up path, it should indicate this by
setting its power.wakeup_path field.  This allows the genpd core code to
keep the device enabled during system suspend when needed.

As regulators powering devices are not handled by genpd, the driver
handles these itself, and thus must skip regulator control when the
device is part of the wake-up path.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pca953x.c