netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wangxunx: select CONFIG_PHYLINK where needed
@ 2024-01-09  7:56 Arnd Bergmann
  2024-01-09  8:38 ` Jiawen Wu
  2024-01-09  9:35 ` Russell King (Oracle)
  0 siblings, 2 replies; 5+ messages in thread
From: Arnd Bergmann @ 2024-01-09  7:56 UTC (permalink / raw)
  To: Jiawen Wu, Mengyuan Lou, Jakub Kicinski
  Cc: Arnd Bergmann, David S. Miller, Eric Dumazet, Paolo Abeni,
	Russell King, Andrew Lunn, Maciej Fijalkowski, Andy Shevchenko,
	Russell King (Oracle), netdev, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

The ngbe driver needs phylink:

arm-linux-gnueabi-ld: drivers/net/ethernet/wangxun/libwx/wx_ethtool.o: in function `wx_nway_reset':
wx_ethtool.c:(.text+0x458): undefined reference to `phylink_ethtool_nway_reset'
arm-linux-gnueabi-ld: drivers/net/ethernet/wangxun/ngbe/ngbe_main.o: in function `ngbe_remove':
ngbe_main.c:(.text+0x7c): undefined reference to `phylink_destroy'
arm-linux-gnueabi-ld: drivers/net/ethernet/wangxun/ngbe/ngbe_main.o: in function `ngbe_open':
ngbe_main.c:(.text+0xf90): undefined reference to `phylink_connect_phy'
arm-linux-gnueabi-ld: drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.o: in function `ngbe_mdio_init':
ngbe_mdio.c:(.text+0x314): undefined reference to `phylink_create'

Add the missing Kconfig description for this.

Fixes: bc2426d74aa3 ("net: ngbe: convert phylib to phylink")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/net/ethernet/wangxun/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/wangxun/Kconfig b/drivers/net/ethernet/wangxun/Kconfig
index 23cd610bd376..46630f05d8dd 100644
--- a/drivers/net/ethernet/wangxun/Kconfig
+++ b/drivers/net/ethernet/wangxun/Kconfig
@@ -26,6 +26,7 @@ config NGBE
 	tristate "Wangxun(R) GbE PCI Express adapters support"
 	depends on PCI
 	select LIBWX
+	select PHYLINK
 	select PHYLIB
 	help
 	  This driver supports Wangxun(R) GbE PCI Express family of
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* RE: [PATCH] wangxunx: select CONFIG_PHYLINK where needed
  2024-01-09  7:56 [PATCH] wangxunx: select CONFIG_PHYLINK where needed Arnd Bergmann
@ 2024-01-09  8:38 ` Jiawen Wu
  2024-01-09  9:35 ` Russell King (Oracle)
  1 sibling, 0 replies; 5+ messages in thread
From: Jiawen Wu @ 2024-01-09  8:38 UTC (permalink / raw)
  To: 'Arnd Bergmann', 'Mengyuan Lou',
	'Jakub Kicinski'
  Cc: 'Arnd Bergmann', 'David S. Miller',
	'Eric Dumazet', 'Paolo Abeni',
	'Russell King', 'Andrew Lunn',
	'Maciej Fijalkowski', 'Andy Shevchenko',
	'Russell King (Oracle)', netdev, linux-kernel

> -----Original Message-----
> From: Arnd Bergmann <arnd@kernel.org>
> Sent: Tuesday, January 9, 2024 3:56 PM
> To: Jiawen Wu <jiawenwu@trustnetic.com>; Mengyuan Lou <mengyuanlou@net-swift.com>; Jakub Kicinski <kuba@kernel.org>
> Cc: Arnd Bergmann <arnd@arndb.de>; David S. Miller <davem@davemloft.net>; Eric Dumazet <edumazet@google.com>; Paolo
> Abeni <pabeni@redhat.com>; Russell King <linux@armlinux.org.uk>; Andrew Lunn <andrew@lunn.ch>; Maciej Fijalkowski
> <maciej.fijalkowski@intel.com>; Andy Shevchenko <andriy.shevchenko@linux.intel.com>; Russell King (Oracle)
> <rmk+kernel@armlinux.org.uk>; netdev@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: [PATCH] wangxunx: select CONFIG_PHYLINK where needed
> 
> From: Arnd Bergmann <arnd@arndb.de>
> 
> The ngbe driver needs phylink:
> 
> arm-linux-gnueabi-ld: drivers/net/ethernet/wangxun/libwx/wx_ethtool.o: in function `wx_nway_reset':
> wx_ethtool.c:(.text+0x458): undefined reference to `phylink_ethtool_nway_reset'
> arm-linux-gnueabi-ld: drivers/net/ethernet/wangxun/ngbe/ngbe_main.o: in function `ngbe_remove':
> ngbe_main.c:(.text+0x7c): undefined reference to `phylink_destroy'
> arm-linux-gnueabi-ld: drivers/net/ethernet/wangxun/ngbe/ngbe_main.o: in function `ngbe_open':
> ngbe_main.c:(.text+0xf90): undefined reference to `phylink_connect_phy'
> arm-linux-gnueabi-ld: drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.o: in function `ngbe_mdio_init':
> ngbe_mdio.c:(.text+0x314): undefined reference to `phylink_create'
> 
> Add the missing Kconfig description for this.
> 
> Fixes: bc2426d74aa3 ("net: ngbe: convert phylib to phylink")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  drivers/net/ethernet/wangxun/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/ethernet/wangxun/Kconfig b/drivers/net/ethernet/wangxun/Kconfig
> index 23cd610bd376..46630f05d8dd 100644
> --- a/drivers/net/ethernet/wangxun/Kconfig
> +++ b/drivers/net/ethernet/wangxun/Kconfig
> @@ -26,6 +26,7 @@ config NGBE
>  	tristate "Wangxun(R) GbE PCI Express adapters support"
>  	depends on PCI
>  	select LIBWX
> +	select PHYLINK
>  	select PHYLIB
>  	help
>  	  This driver supports Wangxun(R) GbE PCI Express family of
> --
> 2.39.2

Reviewed-by: Jiawen Wu <jiawenwu@trustnetic.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] wangxunx: select CONFIG_PHYLINK where needed
  2024-01-09  7:56 [PATCH] wangxunx: select CONFIG_PHYLINK where needed Arnd Bergmann
  2024-01-09  8:38 ` Jiawen Wu
@ 2024-01-09  9:35 ` Russell King (Oracle)
  2024-01-11 15:49   ` Russell King (Oracle)
  1 sibling, 1 reply; 5+ messages in thread
From: Russell King (Oracle) @ 2024-01-09  9:35 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Jiawen Wu, Mengyuan Lou, Jakub Kicinski, Arnd Bergmann,
	David S. Miller, Eric Dumazet, Paolo Abeni, Andrew Lunn,
	Maciej Fijalkowski, Andy Shevchenko, netdev, linux-kernel

On Tue, Jan 09, 2024 at 08:56:21AM +0100, Arnd Bergmann wrote:
> diff --git a/drivers/net/ethernet/wangxun/Kconfig b/drivers/net/ethernet/wangxun/Kconfig
> index 23cd610bd376..46630f05d8dd 100644
> --- a/drivers/net/ethernet/wangxun/Kconfig
> +++ b/drivers/net/ethernet/wangxun/Kconfig
> @@ -26,6 +26,7 @@ config NGBE
>  	tristate "Wangxun(R) GbE PCI Express adapters support"
>  	depends on PCI
>  	select LIBWX
> +	select PHYLINK
>  	select PHYLIB

You can drop PHYLIB when adding PHYLINK.

Thanks.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] wangxunx: select CONFIG_PHYLINK where needed
  2024-01-09  9:35 ` Russell King (Oracle)
@ 2024-01-11 15:49   ` Russell King (Oracle)
  2024-01-11 16:29     ` Arnd Bergmann
  0 siblings, 1 reply; 5+ messages in thread
From: Russell King (Oracle) @ 2024-01-11 15:49 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Jiawen Wu, Mengyuan Lou, Jakub Kicinski, Arnd Bergmann,
	David S. Miller, Eric Dumazet, Paolo Abeni, Andrew Lunn,
	Maciej Fijalkowski, Andy Shevchenko, netdev, linux-kernel

On Tue, Jan 09, 2024 at 09:35:50AM +0000, Russell King (Oracle) wrote:
> On Tue, Jan 09, 2024 at 08:56:21AM +0100, Arnd Bergmann wrote:
> > diff --git a/drivers/net/ethernet/wangxun/Kconfig b/drivers/net/ethernet/wangxun/Kconfig
> > index 23cd610bd376..46630f05d8dd 100644
> > --- a/drivers/net/ethernet/wangxun/Kconfig
> > +++ b/drivers/net/ethernet/wangxun/Kconfig
> > @@ -26,6 +26,7 @@ config NGBE
> >  	tristate "Wangxun(R) GbE PCI Express adapters support"
> >  	depends on PCI
> >  	select LIBWX
> > +	select PHYLINK
> >  	select PHYLIB
> 
> You can drop PHYLIB when adding PHYLINK.

Arnd,

There are repeated complaints from the kernel build bot about this, and
it would be good to get it solved. Could we have an updated patch
submitted to netdev please? This is in net-next only at the moment,
so I think that means it needs to be submitted with:

	[PATCH net-next ...]

and please make it clear that it is a fix for code only in net-next.
(However, netdev folk may request it to be referred until net-next is
merged and then against the net tree...)

Thanks.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] wangxunx: select CONFIG_PHYLINK where needed
  2024-01-11 15:49   ` Russell King (Oracle)
@ 2024-01-11 16:29     ` Arnd Bergmann
  0 siblings, 0 replies; 5+ messages in thread
From: Arnd Bergmann @ 2024-01-11 16:29 UTC (permalink / raw)
  To: Russell King, Arnd Bergmann
  Cc: Jiawen Wu, Mengyuan Lou, Jakub Kicinski, David S . Miller,
	Eric Dumazet, Paolo Abeni, Andrew Lunn, Maciej Fijalkowski,
	Andy Shevchenko, Netdev, linux-kernel

On Thu, Jan 11, 2024, at 16:49, Russell King (Oracle) wrote:
> On Tue, Jan 09, 2024 at 09:35:50AM +0000, Russell King (Oracle) wrote:
>> On Tue, Jan 09, 2024 at 08:56:21AM +0100, Arnd Bergmann wrote:
>> > diff --git a/drivers/net/ethernet/wangxun/Kconfig b/drivers/net/ethernet/wangxun/Kconfig
>> > index 23cd610bd376..46630f05d8dd 100644
>> > --- a/drivers/net/ethernet/wangxun/Kconfig
>> > +++ b/drivers/net/ethernet/wangxun/Kconfig
>> > @@ -26,6 +26,7 @@ config NGBE
>> >  	tristate "Wangxun(R) GbE PCI Express adapters support"
>> >  	depends on PCI
>> >  	select LIBWX
>> > +	select PHYLINK
>> >  	select PHYLIB
>> 
>> You can drop PHYLIB when adding PHYLINK.
>
> Arnd,
>
> There are repeated complaints from the kernel build bot about this, and
> it would be good to get it solved. Could we have an updated patch
> submitted to netdev please? This is in net-next only at the moment,
> so I think that means it needs to be submitted with:
>
> 	[PATCH net-next ...]
>
> and please make it clear that it is a fix for code only in net-next.
> (However, netdev folk may request it to be referred until net-next is
> merged and then against the net tree...)

Sent now, thanks for the reminder.

     Arnd

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-11 16:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-09  7:56 [PATCH] wangxunx: select CONFIG_PHYLINK where needed Arnd Bergmann
2024-01-09  8:38 ` Jiawen Wu
2024-01-09  9:35 ` Russell King (Oracle)
2024-01-11 15:49   ` Russell King (Oracle)
2024-01-11 16:29     ` Arnd Bergmann

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).