[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220519010753.32228-1-cw00.choi@samsung.com>
Date: Thu, 19 May 2022 10:07:53 +0900
From: Chanwoo Choi <cw00.choi@...sung.com>
To: rjw@...ysocki.net
Cc: linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
m.szyprowski@...sung.com, cw00.choi@...sung.com,
chanwoo@...nel.org, myungjoo.ham@...sung.com,
kyungmin.park@...sung.com
Subject: [PATCH] PM / devfreq: passive: Return non-error when not-supported
event is required
Each devfreq governor specifies the supported governor event
such as GOV_START and GOV_STOP. When not-supported event is required,
just return non-error. But, commit ce9a0d88d97a ("PM / devfreq: Add
cpu based scaling support to passive governor") returned the error
value. So that return non-error value when not-supported event is required.
Fixes: ce9a0d88d97a ("PM / devfreq: Add cpu based scaling support to passive governor")
Reported-by: Marek Szyprowski <m.szyprowski@...sung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@...sung.com>
---
Dear Rafael,
This patch fixes the issue of the pull request[1].
I'd like you to apply it to linux-pm.git direclty.
[1] https://patchwork.kernel.org/project/linux-pm/patch/3acd6c32-6e78-dfc2-3e45-84f69a7d5f36@samsung.com/
Best Regards,
Chanwoo Choi
drivers/devfreq/governor_passive.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/devfreq/governor_passive.c b/drivers/devfreq/governor_passive.c
index 7306e943a234..72c67979ebe1 100644
--- a/drivers/devfreq/governor_passive.c
+++ b/drivers/devfreq/governor_passive.c
@@ -402,7 +402,7 @@ static int devfreq_passive_event_handler(struct devfreq *devfreq,
{
struct devfreq_passive_data *p_data
= (struct devfreq_passive_data *)devfreq->data;
- int ret = -EINVAL;
+ int ret = 0;
if (!p_data)
return -EINVAL;
--
2.17.1
Powered by blists - more mailing lists