From: Andrew Lunn <andrew@lunn.ch>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>
Cc: Oleksandr Mazur <oleksandr.mazur@plvision.eu>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, yevhen.orlov@plvision.eu,
taras.chornyi@plvision.eu
Subject: Re: [PATCH V2 net-next] net: marvell: prestera: add phylink support
Date: Wed, 13 Jul 2022 23:52:41 +0200 [thread overview]
Message-ID: <Ys8+qT6ED4dty+3i@lunn.ch> (raw)
In-Reply-To: <Ys8lgQGBsvWAtXDZ@shell.armlinux.org.uk>
On Wed, Jul 13, 2022 at 09:05:21PM +0100, Russell King (Oracle) wrote:
> On Wed, Jul 13, 2022 at 08:20:13PM +0300, Oleksandr Mazur wrote:
> > For SFP port prestera driver will use kernel
> > phylink infrastucture to configure port mode based on
> > the module that has beed inserted
> >
> > Co-developed-by: Yevhen Orlov <yevhen.orlov@plvision.eu>
> > Signed-off-by: Yevhen Orlov <yevhen.orlov@plvision.eu>
> > Co-developed-by: Taras Chornyi <taras.chornyi@plvision.eu>
> > Signed-off-by: Taras Chornyi <taras.chornyi@plvision.eu>
> > Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
> >
> > PATCH V2:
> > - fix mistreat of bitfield values as if they were bools.
> > - remove phylink_config ifdefs.
> > - remove obsolete phylink pcs / mac callbacks;
> > - rework mac (/pcs) config to not look for speed / duplex
> > parameters while link is not yet set up.
> > - remove unused functions.
> > - add phylink select cfg to prestera Kconfig.
>
> I would appreciate answers to my questions, rather than just another
> patch submission. So I'll repeat my question in the hope of an answer:
>
> First question which applies to everything in this patch is - why make
> phylink conditional for this driver?
Hi Oleksandr
I agree with Russell here. This driver should depend on PHYLINK and
remove all the #ifdefs. We try to avoid this sort of code, it hides
bugs and does not get compile tested very well etc.
You need to give us a good reason if you want to keep the code like this.
Andrew
next prev parent reply other threads:[~2022-07-13 21:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-13 17:20 [PATCH V2 net-next] net: marvell: prestera: add phylink support Oleksandr Mazur
2022-07-13 20:05 ` Russell King (Oracle)
2022-07-13 21:52 ` Andrew Lunn [this message]
2022-07-14 8:56 ` Oleksandr Mazur
2022-07-14 12:39 ` Russell King (Oracle)
2022-07-14 13:06 ` Andrew Lunn
2022-07-15 9:35 ` Oleksandr Mazur
2022-07-15 9:33 ` Oleksandr Mazur
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=Ys8+qT6ED4dty+3i@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=oleksandr.mazur@plvision.eu \
--cc=pabeni@redhat.com \
--cc=taras.chornyi@plvision.eu \
--cc=yevhen.orlov@plvision.eu \
/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;
as well as URLs for NNTP newsgroup(s).