[PATCH 2/2] firmware: qcom: scm: Allow the SMC request to freeze and kill
From: Albert Esteve
Date: Mon Aug 24 2026 - 07:38:16 EST
From: Yuvaraj Ranganathan <yrangana@xxxxxxxxxxxxxxxx>
SMC requests in waitQ are put into IDLE state which is not allowing
the task to freeze/kill, adding FREEZABLE & KILLABLE flag will allow the
task to freeze and restore the waitQ state on resume and kill the task
on shutdown.
Signed-off-by: Yuvaraj Ranganathan <yrangana@xxxxxxxxxxxxxxxx>
Signed-off-by: Albert Esteve <aesteve@xxxxxxxxxx>
---
drivers/firmware/qcom/qcom_scm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firmware/qcom/qcom_scm.c b/drivers/firmware/qcom/qcom_scm.c
index 7a042273d6d5b..e4ebe4c0746bb 100644
--- a/drivers/firmware/qcom/qcom_scm.c
+++ b/drivers/firmware/qcom/qcom_scm.c
@@ -2664,7 +2664,7 @@ int qcom_scm_wait_for_wq_completion(struct device *dev, u32 wq_ctx)
if (IS_ERR(wq))
return PTR_ERR(wq);
- wait_for_completion_state(wq, TASK_IDLE);
+ wait_for_completion_state(wq, TASK_IDLE | TASK_FREEZABLE | TASK_KILLABLE);
return 0;
}
--
2.55.0