[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220609134911.xmk5x6qbfu5r7nmd@halaneylaptop>
Date: Thu, 9 Jun 2022 08:49:11 -0500
From: Andrew Halaney <ahalaney@...hat.com>
To: Bjorn Andersson <bjorn.andersson@...aro.org>
Cc: Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
linux-arm-msm@...r.kernel.org, linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] clk: qcom: gdsc: Bump parent usage count when GDSC is
found enabled
On Tue, Jun 07, 2022 at 07:15:48AM -0500, Andrew Halaney wrote:
> On Mon, Jun 06, 2022 at 02:21:12PM -0700, Bjorn Andersson wrote:
> > When a GDSC is found to be enabled at boot the pm_runtime state will
> > be unbalanced as the GDSC is later turned off. Fix this by increasing
> > the usage counter on the power-domain, in line with how we handled the
> > regulator state.
> >
> > Fixes: 1b771839de05 ("clk: qcom: gdsc: enable optional power domain support")
> > Signed-off-by: Bjorn Andersson <bjorn.andersson@...aro.org>
> > ---
> > drivers/clk/qcom/gdsc.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/drivers/clk/qcom/gdsc.c b/drivers/clk/qcom/gdsc.c
> > index 44520efc6c72..a1fa7c4cff60 100644
> > --- a/drivers/clk/qcom/gdsc.c
> > +++ b/drivers/clk/qcom/gdsc.c
> > @@ -420,6 +420,9 @@ static int gdsc_init(struct gdsc *sc)
> > return ret;
> > }
> >
> > + /* ...and the power-domain */
> > + gdsc_pm_runtime_get(sc);
> > +
> > /*
> > * Votable GDSCs can be ON due to Vote from other masters.
> > * If a Votable GDSC is ON, make sure we have a Vote.
> > --
> > 2.35.1
> >
>
> Makes sense to me!
>
> Reviewed-by: Andrew Halaney <ahalaney@...hat.com>
Gah, too trigger happy -- I missed checking the return of
gdsc_pm_runtime_get() as Stephen pointed out in his reply.
I think with that in place feel free to add my R-B.
Thanks,
Andrew
Powered by blists - more mailing lists