diff options
author | Tony Lindgren <tony@atomide.com> | 2020-06-29 19:41:14 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-06-30 12:02:45 +0300 |
commit | f02a03985d06c5a39605a0b8a6206af0f9ec7b03 (patch) | |
tree | 7237e2da4ef9b6839dffeb2d79513d98e26ae007 /drivers/gpio/gpiolib.c | |
parent | e4c6a52c64607d825b0e81c82e548d4cc8199e53 (diff) | |
download | linux-f02a03985d06c5a39605a0b8a6206af0f9ec7b03.tar.xz |
gpio: omap: Add missing PM ops for suspend
We've had the legacy platform code take care of suspend for us but
this no longer is the case when probed without legacy mode with
ti-sysc. We need to configure PM ops like standard Linux device
drivers do.
As we still have some SoCs booting also the legacy mode, we need to
add omap_gpio_suspend() and omap_gpio_resume(), and check for the
is_suspended flag to avoid legacy _od_suspend_noirq() calling them
on an already suspended GPIO instance.
Once we have no SoCs booting in legacy mode, we can just switch to
using the standard PM ops with pm_runtime_force_suspend() and
pm_runtime_force_resume().
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
0 files changed, 0 insertions, 0 deletions