lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <162466340054.3259633.8766268265703754283@swboyd.mtv.corp.google.com>
Date:   Fri, 25 Jun 2021 16:23:20 -0700
From:   Stephen Boyd <sboyd@...nel.org>
To:     Alexandru Ardelean <aardelean@...iqon.com>,
        Thierry Reding <thierry.reding@...il.com>,
        mturquette@...libre.com
Cc:     linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-tegra@...r.kernel.org, pdeschrijver@...dia.com,
        pgaikwad@...dia.com, jonathanh@...dia.com
Subject: Re: [PATCH] clk: tegra: clk-tegra124-dfll-fcpu: don't use devm functions for regulator

Quoting Thierry Reding (2021-06-24 04:57:08)
> On Thu, Jun 24, 2021 at 11:47:37AM +0300, Alexandru Ardelean wrote:
> > The purpose of the device-managed functions is to bind the life-time of an
> > object to that of a parent device object.
> > 
> > This is not the case for the 'vdd-cpu' regulator in this driver. A
> > reference is obtained via devm_regulator_get() and immediately released
> > with devm_regulator_put().
> > 
> > In this case, the usage of devm_ functions is slightly excessive, as the
> > un-managed versions of these functions is a little cleaner (and slightly
> > more economical in terms of allocation).
> > 
> > This change converts the devm_regulator_{get,put}() to
> > regulator_{get,put}() in the get_alignment_from_regulator() function of
> > this driver.
> > 
> > Signed-off-by: Alexandru Ardelean <aardelean@...iqon.com>
> > ---
> >  drivers/clk/tegra/clk-tegra124-dfll-fcpu.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> Indeed, this seems unnecessary:
> 
> Reviewed-by: Thierry Reding <treding@...dia.com>
> 
> Mike, Stephen: do you want to pick this up directly or would you prefer
> if I collected this into a clk branch for the next cycle?
> 

No worries. I got it.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ