Thread (3 messages) 3 messages, 3 authors, 2021-04-21

Re: [PATCHv2] gpio: omap: Save and restore sysconfig

From: Grygorii Strashko <grygorii.strashko@ti.com>
Date: 2021-04-20 10:51:14
Also in: linux-gpio, linux-omap

hi Tony,

On 17/04/2021 11:38, Tony Lindgren wrote:
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: b764a5863fd8 ("gpio: omap: Remove custom PM calls and use cpu_pm instead")
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Adam Ford <redacted>
Cc: Andreas Kemnade <andreas@kemnade.info>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Peter Ujfalusi <redacted>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
  drivers/gpio/gpio-omap.c                | 9 +++++++++
  include/linux/platform_data/gpio-omap.h | 3 +++
  2 files changed, 12 insertions(+)
Thank you.
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>

-- 
Best regards,
grygorii

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help