[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdbL5z50pTXcKqXwbNaYhW1_SvipBY4_nfzeOjAi8cW1Xw@mail.gmail.com>
Date: Fri, 11 Feb 2022 11:30:21 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Alvin Šipraga <ALSI@...g-olufsen.dk>
Cc: Luiz Angelo Daros de Luca <luizluca@...il.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"andrew@...n.ch" <andrew@...n.ch>,
"vivien.didelot@...il.com" <vivien.didelot@...il.com>,
"f.fainelli@...il.com" <f.fainelli@...il.com>,
"olteanv@...il.com" <olteanv@...il.com>,
"davem@...emloft.net" <davem@...emloft.net>,
"kuba@...nel.org" <kuba@...nel.org>,
"arinc.unal@...nc9.com" <arinc.unal@...nc9.com>,
Frank Wunderlich <frank-w@...lic-files.de>
Subject: Re: [PATCH net-next] net: dsa: realtek: realtek-mdio: reset before setup
On Fri, Feb 11, 2022 at 10:54 AM Alvin Šipraga <ALSI@...g-olufsen.dk> wrote:
> Luiz Angelo Daros de Luca <luizluca@...il.com> writes:
> > + if (priv->reset) {
>
> gpiod_set_value seems tolerant of a NULL gpio_desc pointer, but perhaps
> you would like to add the same if statement to realtek-smi so that it
> doesn't pretend to reset the chip when the reset GPIO is absent?
That is fine by me and you can keep my review tag if you also
add this.
Yours,
Linus Walleij
Powered by blists - more mailing lists