power: skip echo mem if there is pending transition 05/288005/4
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 9 Feb 2023 02:33:52 +0000 (11:33 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 13 Feb 2023 09:17:53 +0000 (18:17 +0900)
commiteaf497a3ba352347fa41c1e30ebac125a4f213cd
tree343ac017c216d7ebdfd430f460aa57f5478cf67d
parent971493207a7ba5f643afcd5d11eb7acc3f9d3759
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