power: update wakeup reason immediately after wakeup 24/288224/1
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 8 Feb 2023 03:40:14 +0000 (12:40 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 14 Feb 2023 03:15:03 +0000 (12:15 +0900)
commit5a4031664c7c8d4bc6f60777e629ee98a6fdd8d7
treefee5981625f33a099b8ef391680bc1590b5fee1f
parent509dd86d946a44f4ca482dd204edf1eb07186601
power: update wakeup reason immediately after wakeup

The wakeup reason would be utilized by callback of device_notify().
Therefore update it on resuming. To prevent the wakeup reason from
lingering, reset it by 0 before returning the function.

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