[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a904eb93-0669-476d-8698-d3f5a3c7a162@lunn.ch>
Date: Wed, 25 Oct 2023 00:32:32 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Luiz Angelo Daros de Luca <luizluca@...il.com>
Cc: linus.walleij@...aro.org, alsi@...g-olufsen.dk,
vivien.didelot@...il.com, f.fainelli@...il.com, olteanv@...il.com,
davem@...emloft.net, kuba@...nel.org, netdev@...r.kernel.org,
pabeni@...hat.com, robh+dt@...nel.org, krzk+dt@...nel.org,
arinc.unal@...nc9.com
Subject: Re: [PATCH net-next 1/2] net: dsa: realtek: support reset controller
On Tue, Oct 24, 2023 at 07:17:10PM -0300, Luiz Angelo Daros de Luca wrote:
> Hi Linus,
>
> > - /* TODO: if power is software controlled, set up any regulators here */
> > +#ifdef CONFIG_RESET_CONTROLLER
> > + priv->reset_ctl = devm_reset_control_get(dev, "switch");
> > + if (IS_ERR(priv->reset_ctl)) {
> > + dev_err(dev, "failed to get switch reset control\n");
> > + return PTR_ERR(priv->reset_ctl);
> > + }
> > +#endif
>
> I'm dropping this TODO as I think it means something like this reset
> control, right?
No, a regulator is a different thing to a reset controller. A
regulator is used to control the power to the device.
Andrew
Powered by blists - more mailing lists