Re: [RFC PATCH v3 2/2] mfd: syscon: allow reset control for syscon devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 4, 2023, at 18:57, Lee Jones wrote:
> 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.

Looks all good to me,

Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux