69160fd77a57b19dcebb18368a8827044d05c4da
[openwrt/staging/dangole.git] /
1 From 42d2607d91c4ec37ea1970899c2d614824f3014b Mon Sep 17 00:00:00 2001
2 From: Chanwoo Choi <cw00.choi@samsung.com>
3 Date: Thu, 19 May 2022 10:07:53 +0900
4 Subject: [PATCH 5/5] PM / devfreq: passive: Return non-error when
5 not-supported event is required
6
7 Each devfreq governor specifies the supported governor event
8 such as GOV_START and GOV_STOP. When not-supported event is required,
9 just return non-error. But, commit ce9a0d88d97a ("PM / devfreq: Add
10 cpu based scaling support to passive governor") returned the error
11 value. So that return non-error value when not-supported event is required.
12
13 Fixes: ce9a0d88d97a ("PM / devfreq: Add cpu based scaling support to passive governor")
14 Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
15 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
16 Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
17 ---
18 drivers/devfreq/governor_passive.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/drivers/devfreq/governor_passive.c
22 +++ b/drivers/devfreq/governor_passive.c
23 @@ -402,7 +402,7 @@ static int devfreq_passive_event_handler
24 {
25 struct devfreq_passive_data *p_data
26 = (struct devfreq_passive_data *)devfreq->data;
27 - int ret = -EINVAL;
28 + int ret = 0;
29
30 if (!p_data)
31 return -EINVAL;