STR: fix suspend abort cause system resume by powerkey event [1/1]
authorQiufang Dai <qiufang.dai@amlogic.com>
Mon, 7 Jun 2021 12:58:00 +0000 (20:58 +0800)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 21 Dec 2021 18:32:51 +0000 (13:32 -0500)
commit3a7537fe9d3d8f0bedbbda069ccc076ebe689a9a
tree0e1a4fb92fb21ac3884b4a243619a462824bc08f
parent80446f6856dd6900d94a16e62ec48a8e52dba382
STR: fix suspend abort cause system resume by powerkey event [1/1]

PD#SWPL-52156

Problem:
When suspend abort happens, device driver resume call back call
get_resume_method() which always feedback the last resume method.
It cause a wrong powerkey event report by driver resume call back.

Solution:
Clr resume method in suspend prepare notify.
Provide a stationary get_resume_reason() api.

Verify:
SC2_AH212

Change-Id: I4f6577201125af6ce93dfc36b24b4c80fd812e46
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
drivers/amlogic/pm/gx_pm.c