ARM: OMAP2+: Block suspend for am3 and am4 if PM is not configured
authorTony Lindgren <tony@atomide.com>
Tue, 25 May 2021 09:33:11 +0000 (12:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jul 2021 12:36:15 +0000 (14:36 +0200)
commitffa6f08be14acc511a8bdfaf70c66cfe3019edd3
tree1ac4712d8de2096389654917e5655d0e5020cba4
parentf40a7c9b8ee19843cb1473f9de822733d21e73c5
ARM: OMAP2+: Block suspend for am3 and am4 if PM is not configured

[ Upstream commit 093a474ce10d8ea3db3ef2922aca5a38f34bab1b ]

If the PM related modules are not loaded and PM firmware not configured,
the system suspend fails to resume. Let's fix this by adding initial
platform_suspend_ops to block suspend and warn about missing modules.

When pm33xx and wkup_m3_ipc have been loaded and m3 coprocessor booted
with it's firmware, pm33xx sets up working platform_suspend_ops. Note
that we need to configure at least PM_SUSPEND_STANDBY to have
suspend_set_ops().

Cc: Dave Gerlach <d-gerlach@ti.com>
Cc: Suman Anna <s-anna@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-omap2/pm33xx-core.c