From 59fee3b35b331c1bcfa3522af1c5884ff05a1546 Mon Sep 17 00:00:00 2001 From: Yongtaek Jeon Date: Tue, 15 Apr 2025 19:04:35 +0900 Subject: [PATCH] soc: spacemit: pm_domain: Fix qos remove flag mismatch atomic_freq_qos_remove_request() triggered a WARN() due to removal of an inactive request. The condition was based on handle_pm_domain, but the request was added only when handle_cpuidle_qos was true. Use the correct flag to avoid calling remove without add. Change-Id: I24c9e9a5e757abdda275aaa3a10bcb9d87d1c710 Signed-off-by: Yongtaek Jeon --- drivers/soc/spacemit/pm_domain/k1x-pm_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/spacemit/pm_domain/k1x-pm_domain.c b/drivers/soc/spacemit/pm_domain/k1x-pm_domain.c index b7c10cd2e556..b0e7290de903 100644 --- a/drivers/soc/spacemit/pm_domain/k1x-pm_domain.c +++ b/drivers/soc/spacemit/pm_domain/k1x-pm_domain.c @@ -479,7 +479,7 @@ static void spacemit_pd_detach_dev(struct generic_pm_domain *genpd, struct devic devm_regulator_put(pos->rgr[pos->rgr_count]); } - if (pos->handle_pm_domain) { + if (pos->handle_cpuidle_qos) { atomic_freq_qos_remove_request(&pos->qos); } -- 2.34.1