]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTony Lindgren <tony@atomide.com>
Fri, 11 Jun 2021 07:43:08 +0000 (10:43 +0300)
commitcd0716ba69f4643c0209413d95d09a907d4e0d1f
tree22501eb69bdbe6cfbdaed487951bdae1bd6aeb63
parentbf2e338e4f91fece2a11e6af565e84844235d7d1
ARM: OMAP2+: Block suspend for am3 and am4 if PM is not configured

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>
arch/arm/mach-omap2/pm33xx-core.c