power: update wakeup reason immediately after wakeup 01/288001/2
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 8 Feb 2023 03:40:14 +0000 (12:40 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 13 Feb 2023 08:42:43 +0000 (17:42 +0900)
commit101a2f359b7cd92802dabaf8c958aa99295336ac
treefee5981625f33a099b8ef391680bc1590b5fee1f
parent3b8b80d8a7fc62710d19a5310ae62ab939ce0b89
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