lkml.org 
[lkml]   [2022]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V2 net-next] net: marvell: prestera: add phylink support
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

\
 
 \ /
  Last update: 2022-07-13 23:54    [W:2.373 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site