soc: spacemit: pm_domain: Fix qos remove flag mismatch 60/322760/2 old/tizen_20250514 accepted/tizen/unified/20250428.091728 accepted/tizen/unified/x/20250429.081835
authorYongtaek Jeon <ytjeon@samsung.com>
Tue, 15 Apr 2025 10:04:35 +0000 (19:04 +0900)
committerYongtaek Jeon <ytjeon@samsung.com>
Wed, 16 Apr 2025 00:10:50 +0000 (09:10 +0900)
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 <ytjeon@samsung.com>
drivers/soc/spacemit/pm_domain/k1x-pm_domain.c

index b7c10cd2e55638757f9cccae9e2242d46fdc7a2c..b0e7290de903cd07125d010edb187a1267799ab4 100644 (file)
@@ -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);
        }