[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AM9PR04MB8397721F40A82475A1CA42FF96519@AM9PR04MB8397.eurprd04.prod.outlook.com>
Date: Tue, 11 Jan 2022 08:27:33 +0000
From: Claudiu Manoil <claudiu.manoil@....com>
To: Russell King <linux@...linux.org.uk>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [PATCH CFT net-next] net: enetc: use .mac_select_pcs() interface
> -----Original Message-----
> From: Claudiu Manoil
> Sent: Monday, January 10, 2022 7:38 PM
> To: Russell King <linux@...linux.org.uk>; David S. Miller
> <davem@...emloft.net>; Jakub Kicinski <kuba@...nel.org>
> Cc: netdev@...r.kernel.org
> Subject: RE: [PATCH CFT net-next] net: enetc: use .mac_select_pcs()
> interface
>
> > -----Original Message-----
> > From: Russell King <linux@...linux.org.uk>
> > Sent: Friday, January 7, 2022 3:41 PM
> > To: David S. Miller <davem@...emloft.net>; Jakub Kicinski
> > <kuba@...nel.org>
> > Cc: Claudiu Manoil <claudiu.manoil@....com>; netdev@...r.kernel.org
> > Subject: Re: [PATCH CFT net-next] net: enetc: use .mac_select_pcs()
> > interface
> >
> > On Thu, Dec 16, 2021 at 12:41:41PM +0000, Russell King (Oracle) wrote:
> > > Convert the PCS selection to use mac_select_pcs, which allows the PCS
> > > to perform any validation it needs.
> > >
> > > Signed-off-by: Russell King (Oracle) <rmk+kernel@...linux.org.uk>
> >
> > Hi,
> >
> > Can anyone test this please? Claudiu?
> >
> > Russell.
> >
>
> Hi Russell,
>
> drivers/net/ethernet/freescale/enetc/enetc_pf.c: In function
> 'enetc_pl_mac_select_pcs':
> drivers/net/ethernet/freescale/enetc/enetc_pf.c:942:27: error: 'struct
> phylink_pcs' has no member named 'pcs'
> 942 | return pf->pcs ? &pf->pcs->pcs : NULL;
>
> I suppose you meant:
> - return pf->pcs ? &pf->pcs->pcs : NULL;
> + return pf->pcs;
>
> With this correction I could bring up the SGMII link on my ls1028rdb.
> The patch needs also rebase.
>
Actually it's just a matter of rebasing the patch on latest net-next, since
commit e7026f15564f "net: phy: lynx: refactor Lynx PCS module to use generic phylink_pcs"
replaced 'struct lynx_pcs' with 'struct phylink_pcs'.
Powered by blists - more mailing lists