From 118d61a9bfe0efe7cf4dc775e6c65e68c4913f47 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Tue, 7 Jan 2025 09:45:57 +0900 Subject: [PATCH] soc: spacemit: pm_domain: Add return -EINVAL in notifier_call If action is not matched with anything, it needs to return with value. lock/unlock will be a pair. Otherwise unlock is called twice. Change-Id: I4eb3955572635257eb5bdf992c201c5efb509495 Signed-off-by: Jaehoon Chung --- drivers/soc/spacemit/pm_domain/k1x-pm_domain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/spacemit/pm_domain/k1x-pm_domain.c b/drivers/soc/spacemit/pm_domain/k1x-pm_domain.c index 49f4f6dd8345..b7c10cd2e556 100644 --- a/drivers/soc/spacemit/pm_domain/k1x-pm_domain.c +++ b/drivers/soc/spacemit/pm_domain/k1x-pm_domain.c @@ -531,6 +531,7 @@ static int spacemit_cpuidle_qos_notfier_call(struct notifier_block *nb, unsigned default: pr_warn("Invalidate pm qos value\n"); spin_unlock(&spacemit_apcr_qos_lock); + return -EINVAL; } regmap_read(gpmu->regmap[MPMU_REGMAP_INDEX], MPMU_APCR_PER_REG, &apcr_per); -- 2.34.1