From: Lukas Wunner <lukas@wunner.de>
To: Grant Grundler <grundler@chromium.org>
Cc: Florian Fainelli <f.fainelli@gmail.com>,
Oleksij Rempel <linux@rempel-privat.de>,
Pavel Skripkin <paskripkin@gmail.com>,
Anton Lundin <glance@acc.umu.se>,
Eizan Miyamoto <eizan@chromium.org>,
Jakub Kicinski <kuba@kernel.org>, netdev <netdev@vger.kernel.org>,
"David S . Miller" <davem@davemloft.net>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] net: asix: fix modprobe "sysfs: cannot create duplicate filename"
Date: Tue, 7 Mar 2023 11:29:31 +0100 [thread overview]
Message-ID: <20230307102931.GA25631@wunner.de> (raw)
In-Reply-To: <CANEJEGvM_xLrSSjrgKLh_xP+BrFFT+afDQhG8BOdgHPf7eR4gQ@mail.gmail.com>
On Mon, Mar 06, 2023 at 10:10:09PM -0800, Grant Grundler wrote:
> On Mon, Mar 6, 2023 at 7:46???PM Florian Fainelli <f.fainelli@gmail.com> wrote:
> > On 3/6/2023 4:50 PM, Grant Grundler wrote:
> > > + priv->phydev = mdiobus_get_phy(priv->mdio, priv->phy_addr);
> > > + if (priv->phydev)
> > > + return 0;
> >
> > This was in ax88772_init_phy() before, why is this being moved here now?
>
> Because other drivers I looked at (e.g. tg3 and r8169) do all the mdiobus_*
> calls in one function and I wanted to have some "symmetry"
> with ax88772_release_mdio() function I added below.
I'd suggest moving this cleanup to a separate commit so that you keep
the fix itself as small as possible and thus minimize the potential of
introducing regressions in stable kernels that will receive the fix.
Also, per convention please use the if-clause to catch the error case,
not the success case. It doesn't matter if you need two or three more
lines, readability is more important IMO.
Thanks,
Lukas
next prev parent reply other threads:[~2023-03-07 10:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-07 0:50 Grant Grundler
2023-03-07 3:46 ` Florian Fainelli
2023-03-07 6:22 ` Grant Grundler
2023-03-07 8:40 ` Oleksij Rempel
[not found] ` <CANEJEGvM_xLrSSjrgKLh_xP+BrFFT+afDQhG8BOdgHPf7eR4gQ@mail.gmail.com>
2023-03-07 10:29 ` Lukas Wunner [this message]
2023-03-07 18:13 ` Grant Grundler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230307102931.GA25631@wunner.de \
--to=lukas@wunner.de \
--cc=davem@davemloft.net \
--cc=eizan@chromium.org \
--cc=f.fainelli@gmail.com \
--cc=glance@acc.umu.se \
--cc=grundler@chromium.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@rempel-privat.de \
--cc=netdev@vger.kernel.org \
--cc=paskripkin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®