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: <Y7W+E2/bywt16BqJ@google.com>
Date:   Wed, 4 Jan 2023 17:57:39 +0000
From:   Lee Jones <lee@...nel.org>
To:     Jeremy Kerr <jk@...econstruct.com.au>
Cc:     devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
        Rob Herring <robh+dt@...nel.org>,
        Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
        Arnd Bergmann <arnd@...db.de>,
        Philipp Zabel <p.zabel@...gutronix.de>,
        Mark Brown <broonie@...nel.org>
Subject: Re: [RFC PATCH v3 2/2] mfd: syscon: allow reset control for syscon
 devices

On Thu, 05 Jan 2023, Jeremy Kerr wrote:

> Hi Lee,
> 
> > > @@ -124,7 +127,17 @@ static struct syscon *of_syscon_register(struct device_node *np, bool check_clk)
> > >                 } else {
> > >                         ret = regmap_mmio_attach_clk(regmap, clk);
> > >                         if (ret)
> > > -                               goto err_attach;
> > > +                               goto err_attach_clk;
> > > +               }
> > > +
> > > +               reset = of_reset_control_get_optional_exclusive(np, NULL);
> > > +               if (IS_ERR(reset)) {
> > > +                       ret = PTR_ERR(reset);
> > > +                       goto err_attach_clk;
> > > +               } else {
> > > +                       ret = reset_control_deassert(reset);
> > > +                       if (ret)
> > > +                               goto err_reset;
> > >                 }
> > 
> > The else is superfluous, right?
> 
> Yep, we could move that reset_control_deassert() out of the else block.
> If there are no other changes, I'll send a v4 with that.

I'd wait a little while to give Arnd a chance to respond.

Might save you a little work.

-- 
Lee Jones [李琼斯]

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ