]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ARM: OMAP2+: Handle errors for cpu_pm
authorTony Lindgren <tony@atomide.com>
Wed, 4 Mar 2020 22:54:30 +0000 (14:54 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 9 Mar 2020 09:24:01 +0000 (10:24 +0100)
commit55be2f50336f67800513b46c5ba6270e4ed0e784
treed170710b396938722eb314005088f0d6b83a82dd
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
ARM: OMAP2+: Handle errors for cpu_pm

We need to check for errors when calling cpu_pm_enter() and
cpu_cluster_pm_enter(). And we need to bail out on errors as
otherwise we can enter a deeper idle state when not desired.

I'm not aware of the lack of error handling causing issues yet,
but we need this at least for blocking deeper idle states when
a GPIO instance has pending interrupts.

Cc: Dave Gerlach <d-gerlach@ti.com>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Keerthy <j-keerthy@ti.com>
Cc: Ladislav Michl <ladis@linux-mips.org>
Cc: Russell King <rmk+kernel@armlinux.org.uk>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20200304225433.37336-2-tony@atomide.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-omap2/cpuidle34xx.c
arch/arm/mach-omap2/cpuidle44xx.c
arch/arm/mach-omap2/pm34xx.c