soc: spacemit: pm_domain: Fix qos remove flag mismatch tizen-next accepted/tizen/unified/20250514.114144 accepted/tizen/unified/x/20250515.044704
authorYongtaek Jeon <ytjeon@samsung.com>
Tue, 15 Apr 2025 10:04:35 +0000 (19:04 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 29 Apr 2025 03:38:33 +0000 (12:38 +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);
        }