]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: omap: Save and restore sysconfig
authorTony Lindgren <tony@atomide.com>
Sat, 17 Apr 2021 08:38:39 +0000 (11:38 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 21 Apr 2021 14:43:51 +0000 (16:43 +0200)
commit136b74279facc67bbfe17394c008d830b5cc3620
treec722ec3dbfb66b0a4f3177c08fdcb23fac932289
parent67cf08f7f80f54fc2e8fe15f5690557badb89b02
gpio: omap: Save and restore sysconfig

As we are using cpu_pm to save and restore context, we must also save and
restore the GPIO sysconfig register. This is needed because we are not
calling PM runtime functions at all with cpu_pm.

We need to save the sysconfig on idle as it's value can get reconfigured by
PM runtime and can be different from the init time value. Device specific
flags like "ti,no-idle-on-init" can affect the init value.

Fixes: 86c740e8eaea ("gpio: omap: Remove custom PM calls and use cpu_pm instead")
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Adam Ford <aford173@gmail.com>
Cc: Andreas Kemnade <andreas@kemnade.info>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-omap.c
include/linux/platform_data/gpio-omap.h