suspend: fix freeze abort hangup which caused by insmod [1/1]

PD#GH-134

Problem:
When freeze abort happen, it will lose device_unblock_probing(),
so device probe is blocked.

Solution:
When freeze abort happen, release device_block_probing

Verify:
SM1_S905D3_AC200

Change-Id: I3e591fe9ed392b6a4d30285817a91fbfec25336f
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
This commit is contained in:
Qiufang Dai
2019-12-26 12:05:22 +08:00
committed by Luke Go
parent a8ec9f5274
commit 58104a8866

View File

@@ -314,6 +314,11 @@ static int suspend_prepare(suspend_state_t state)
if (!error)
return 0;
#ifdef CONFIG_AMLOGIC_MODIFY
/* Allow device probing and trigger re-probing of deferred devices */
device_unblock_probing();
#endif
suspend_stats.failed_freeze++;
dpm_save_failed_step(SUSPEND_FREEZE);
Finish: