From 2208e80231bc2e65751f82849dbe30ef90c61764 Mon Sep 17 00:00:00 2001 From: quebs2 Date: Wed, 22 Sep 2021 10:23:59 +0800 Subject: [PATCH] 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 Reviewed-on: https://gerrit.mot.com/2072405 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- drivers/misc/qseecom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/misc/qseecom.c b/drivers/misc/qseecom.c index 423b96f0f0c3..2c9b0232a465 100644 --- a/drivers/misc/qseecom.c +++ b/drivers/misc/qseecom.c @@ -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; }