[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210122030506.zhfkk4angmp2a4hk@vireshk-i7>
Date: Fri, 22 Jan 2021 08:35:06 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: Dmitry Osipenko <digetx@...il.com>
Cc: Viresh Kumar <vireshk@...nel.org>, Nishanth Menon <nm@...com>,
Stephen Boyd <sboyd@...nel.org>, linux-pm@...r.kernel.org,
Vincent Guittot <vincent.guittot@...aro.org>,
Rafael Wysocki <rjw@...ysocki.net>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH V2] opp: Prepare for ->set_opp() helper to work without
regulators
On 22-01-21, 00:02, Dmitry Osipenko wrote:
> 21.01.2021 14:30, Viresh Kumar пишет:
> > @@ -1952,9 +1930,16 @@ void dev_pm_opp_put_regulators(struct opp_table *opp_table)
> > for (i = opp_table->regulator_count - 1; i >= 0; i--)
> > regulator_put(opp_table->regulators[i]);
> >
> > - _free_set_opp_data(opp_table);
> > + mutex_lock(&opp_table->lock);
> > + if (opp_table->set_opp_data) {
> > + opp_table->set_opp_data->old_opp.supplies = NULL;
> > + opp_table->set_opp_data->new_opp.supplies = NULL;
> > + }
> > + mutex_unlock(&opp_table->lock);
> >
> > + kfree(opp_table->sod_supplies);
> > kfree(opp_table->regulators);
> > + opp_table->sod_supplies = NULL;
> > opp_table->regulators = NULL;
> > opp_table->regulator_count = -1;
>
> The sod_supplies should be unset under the lock.
Fixed, thanks.
--
viresh
Powered by blists - more mailing lists