qseecom: Suppress suspend warning if without bus scaling.

Recorded from QC SR: 05399803 as if the qseecom_supsend will only
cancel the workqueque when the crypto bus scaling is enabled. Hence
restrict the operation if without the configuration.

Change-Id: I8d6d347a6393da76641fc8fa4601016629b4a53c
Signed-off-by: quebs2 <quebs2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2072405
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
quebs2 2021-09-22 10:23:59 +08:00 • committed by Xiaojun Ji
commit 2208e80231

View file

@ -9760,7 +9760,9 @@ static int qseecom_suspend(struct platform_device *pdev, pm_message_t state)
mutex_unlock(&clk_access_lock);
mutex_unlock(&qsee_bw_mutex);
cancel_work_sync(&qseecom.bw_inactive_req_ws);
if (qseecom.support_bus_scaling) {
cancel_work_sync(&qseecom.bw_inactive_req_ws);
}
return 0;
}