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)
committerChristian Hoffmann <chrmhoffmann@gmail.com>
Sun, 12 Feb 2023 08:13:11 +0000 (09:13 +0100)
commitbef089a3348683d1d189ab8b7c8a82eec1ee6083
tree172a05a3d694801a24079a951b181687a6a6178f
parent01c8d5adc89a07dbf28ada8a9d66c383c8a32549
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