Linux Power Management development
 help / color / mirror / Atom feed
From: Viresh Kumar <viresh.kumar@linaro.org>
To: Sudeep Holla <sudeep.holla@arm.com>
Cc: linux-pm@vger.kernel.org, Viresh Kumar <vireshk@kernel.org>,
	Nishanth Menon <nm@ti.com>, Stephen Boyd <sboyd@codeaurora.org>,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>
Subject: Re: [PATCH v2] PM / OPP: add missing of_node_put() for of_get_cpu_node()
Date: Wed, 11 Oct 2017 15:51:46 +0530	[thread overview]
Message-ID: <20171011102146.GB32532@vireshk-i7> (raw)
In-Reply-To: <1507716661-27146-1-git-send-email-sudeep.holla@arm.com>

On 11-10-17, 11:11, Sudeep Holla wrote:
> Commit 762792913f8c ("PM / OPP: Fix get sharing CPUs when hotplug is used")
> moved away from using cpu_dev->of_node because of some limitations.
> However commit 7467c9d95989 ("of: return of_get_cpu_node from
> of_cpu_device_node_get if CPUs are not registered") added support to
> falls back to of_get_cpu_node if called if CPUs are not registered yet.
> 
> It adds the missing of_node_put for the CPU device nodes. This patch also
> moves back to use of_cpu_device_node_get in dev_pm_opp_of_get_sharing_cpus
> to avoid scanning the device tree again.
> 
> Cc: Viresh Kumar <vireshk@kernel.org>
> Cc: Nishanth Menon <nm@ti.com>
> Cc: Stephen Boyd <sboyd@codeaurora.org>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Fixes: 762792913f8c ("PM / OPP: Fix get sharing CPUs when hotplug is used")
> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>

Cc: 4.14+ <stable@vger.kernel.org> # 4.14+

> ---
>  drivers/opp/of.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> v1->v2:
> 	- Moved of_node_put after using cpu_np
> 	- Renamed the $subject as fixing refcount is key part of the part
> 	  and correctly relates to "Fixes" tag
> 	- Also added include change which was accidentally missed

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

  reply	other threads:[~2017-10-11 10:21 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-10 10:48 [PATCH] PM / OPP: use of_cpu_device_node_get() instead of of_get_cpu_node() Sudeep Holla
2017-10-10 11:45 ` Viresh Kumar
2017-10-10 12:39   ` Sudeep Holla
2017-10-10 15:54     ` Sudeep Holla
2017-10-10 17:12       ` Rafael J. Wysocki
2017-10-10 17:13         ` Rafael J. Wysocki
2017-10-10 17:20           ` Sudeep Holla
2017-10-11  4:23     ` Viresh Kumar
2017-10-11 10:11 ` [PATCH v2] PM / OPP: add missing of_node_put() for of_get_cpu_node() Sudeep Holla
2017-10-11 10:21   ` Viresh Kumar [this message]
2017-10-11 10:35     ` Sudeep Holla
2017-10-11 10:36       ` Viresh Kumar
2017-10-11 11:21         ` Sudeep Holla
2017-10-11 20:20   ` Stephen Boyd
2017-10-12  8:50     ` Sudeep Holla
2017-10-12 10:32 ` [PATCH v3] " Sudeep Holla
2017-10-12 20:58   ` Stephen Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171011102146.GB32532@vireshk-i7 \
    --to=viresh.kumar@linaro.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=nm@ti.com \
    --cc=rjw@rjwysocki.net \
    --cc=sboyd@codeaurora.org \
    --cc=sudeep.holla@arm.com \
    --cc=vireshk@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox