* Re: [PATCH v3] PM / OPP: fix debug/error messages in dev_pm_opp_of_get_sharing_cpus()
2016-10-20 7:12 [PATCH v3] PM / OPP: fix debug/error messages in dev_pm_opp_of_get_sharing_cpus() Masahiro Yamada
@ 2016-10-20 7:12 ` Viresh Kumar
2016-10-20 19:18 ` Stephen Boyd
1 sibling, 0 replies; 4+ messages in thread
From: Viresh Kumar @ 2016-10-20 7:12 UTC (permalink / raw)
To: Masahiro Yamada
Cc: linux-pm, Stephen Boyd, linux-kernel, Nishanth Menon, Len Brown,
Greg Kroah-Hartman, Rafael J. Wysocki, Pavel Machek, Viresh Kumar
On 20-10-16, 16:12, Masahiro Yamada wrote:
> These log messages are wrong because _of_get_opp_desc_node() returns
> an operating-points-v2 node.
>
> Commit a6eed752f5fb ("PM / OPP: passing NULL to PTR_ERR()") fixed
> static checker warnings, and reworded the messages at the same time
> (but the latter was not mentioned in the git-log).
>
> Restore the correct messages.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
>
> Changes in v3:
> - Revive __func__
>
> Changes in v2:
> - Reword git-log slightly
> comments -> log messages
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
--
viresh
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3] PM / OPP: fix debug/error messages in dev_pm_opp_of_get_sharing_cpus()
@ 2016-10-20 7:12 Masahiro Yamada
2016-10-20 7:12 ` Viresh Kumar
2016-10-20 19:18 ` Stephen Boyd
0 siblings, 2 replies; 4+ messages in thread
From: Masahiro Yamada @ 2016-10-20 7:12 UTC (permalink / raw)
To: linux-pm
Cc: Masahiro Yamada, Stephen Boyd, linux-kernel, Nishanth Menon,
Len Brown, Greg Kroah-Hartman, Rafael J. Wysocki, Pavel Machek,
Viresh Kumar
These log messages are wrong because _of_get_opp_desc_node() returns
an operating-points-v2 node.
Commit a6eed752f5fb ("PM / OPP: passing NULL to PTR_ERR()") fixed
static checker warnings, and reworded the messages at the same time
(but the latter was not mentioned in the git-log).
Restore the correct messages.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
Changes in v3:
- Revive __func__
Changes in v2:
- Reword git-log slightly
comments -> log messages
drivers/base/power/opp/of.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/base/power/opp/of.c b/drivers/base/power/opp/of.c
index 6480137..5b3755e 100644
--- a/drivers/base/power/opp/of.c
+++ b/drivers/base/power/opp/of.c
@@ -562,7 +562,7 @@ int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev,
/* Get OPP descriptor node */
np = _of_get_opp_desc_node(cpu_dev);
if (!np) {
- dev_dbg(cpu_dev, "%s: Couldn't find cpu_dev node.\n", __func__);
+ dev_dbg(cpu_dev, "%s: Couldn't find opp node.\n", __func__);
return -ENOENT;
}
@@ -587,7 +587,7 @@ int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev,
/* Get OPP descriptor node */
tmp_np = _of_get_opp_desc_node(tcpu_dev);
if (!tmp_np) {
- dev_err(tcpu_dev, "%s: Couldn't find tcpu_dev node.\n",
+ dev_err(tcpu_dev, "%s: Couldn't find opp node.\n",
__func__);
ret = -ENOENT;
goto put_cpu_node;
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v3] PM / OPP: fix debug/error messages in dev_pm_opp_of_get_sharing_cpus()
2016-10-20 7:12 [PATCH v3] PM / OPP: fix debug/error messages in dev_pm_opp_of_get_sharing_cpus() Masahiro Yamada
2016-10-20 7:12 ` Viresh Kumar
@ 2016-10-20 19:18 ` Stephen Boyd
2016-11-14 0:22 ` Rafael J. Wysocki
1 sibling, 1 reply; 4+ messages in thread
From: Stephen Boyd @ 2016-10-20 19:18 UTC (permalink / raw)
To: Masahiro Yamada
Cc: linux-pm, linux-kernel, Nishanth Menon, Len Brown,
Greg Kroah-Hartman, Rafael J. Wysocki, Pavel Machek, Viresh Kumar
On 10/20, Masahiro Yamada wrote:
> These log messages are wrong because _of_get_opp_desc_node() returns
> an operating-points-v2 node.
>
> Commit a6eed752f5fb ("PM / OPP: passing NULL to PTR_ERR()") fixed
> static checker warnings, and reworded the messages at the same time
> (but the latter was not mentioned in the git-log).
>
> Restore the correct messages.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3] PM / OPP: fix debug/error messages in dev_pm_opp_of_get_sharing_cpus()
2016-10-20 19:18 ` Stephen Boyd
@ 2016-11-14 0:22 ` Rafael J. Wysocki
0 siblings, 0 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2016-11-14 0:22 UTC (permalink / raw)
To: Stephen Boyd, Masahiro Yamada
Cc: linux-pm, linux-kernel, Nishanth Menon, Len Brown,
Greg Kroah-Hartman, Pavel Machek, Viresh Kumar
On Thursday, October 20, 2016 12:18:58 PM Stephen Boyd wrote:
> On 10/20, Masahiro Yamada wrote:
> > These log messages are wrong because _of_get_opp_desc_node() returns
> > an operating-points-v2 node.
> >
> > Commit a6eed752f5fb ("PM / OPP: passing NULL to PTR_ERR()") fixed
> > static checker warnings, and reworded the messages at the same time
> > (but the latter was not mentioned in the git-log).
> >
> > Restore the correct messages.
> >
> > Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> > ---
>
> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Applied.
Thanks,
Rafael
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-11-14 0:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-20 7:12 [PATCH v3] PM / OPP: fix debug/error messages in dev_pm_opp_of_get_sharing_cpus() Masahiro Yamada
2016-10-20 7:12 ` Viresh Kumar
2016-10-20 19:18 ` Stephen Boyd
2016-11-14 0:22 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).