[PATCHv2] gpio: omap: Save and restore sysconfig

Grygorii Strashko grygorii.strashko at ti.com
Tue Apr 20 11:50:30 BST 2021


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 at iki.fi>
> Cc: Adam Ford <aford173 at gmail.com>
> Cc: Andreas Kemnade <andreas at kemnade.info>
> Cc: Grygorii Strashko <grygorii.strashko at ti.com>
> Cc: Peter Ujfalusi <peter.ujfalusi at gmail.com>
> Signed-off-by: Tony Lindgren <tony at 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 at ti.com>

-- 
Best regards,
grygorii



More information about the linux-arm-kernel mailing list