OMAP3: PM: Check in set_pwrdm_state that target state is supported by pwrdm v2
authorJouni Hogander <jouni.hogander@nokia.com>
Mon, 17 Nov 2008 08:18:01 +0000 (10:18 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 19 Nov 2008 18:03:21 +0000 (10:03 -0800)
Check that wanted sleep state is supported by powerdomain. If it is
not supported, then use next lowest supported state.

Check also on suspend that state of pwrdm was lower or equal.

Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

No differences found