power: skip echo mem if there is pending transition 29/288229/1
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 9 Feb 2023 02:33:52 +0000 (11:33 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 14 Feb 2023 03:15:22 +0000 (12:15 +0900)
commit239951c5fe549926404d2ae93f10889371d3f533
tree343ac017c216d7ebdfd430f460aa57f5478cf67d
parent1da8534231a9a7085c6c034b18f6804c1a01e950
power: skip echo mem if there is pending transition

For echo mem, there could be some pending transitions when it comes to
enter suspend. This is because transition is asynchronously processed.
That is, if there were another transition request during a sleep
transition, the sleep transition should be skipped and take the next
transition immediately. Otherwise, the next transition will handled
after wakeup, which is indefinite.

Change-Id: Ia09a1d1162e21710538f6e9ce7bd1fb3e9c43d0f
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/power/power-suspend.c
src/power/power.c
src/power/power.h