Skip to contentSkip to conversation

wangxunx: select CONFIG_PHYLINK where needed

PATCH Superseded Arnd Bergmann 4 participants 5 messages Jan 9, 2024 – Jan 11, 2024

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wangxunx: select CONFIG_PHYLINK where needed

From: Arnd Bergmann <[email protected]>

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")
---
 drivers/net/ethernet/wangxun/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/wangxun/Kconfig +1 -0
index 23cd610bd376..46630f05d8dd 100644
@@ -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
Signature · 1 line
2.39.2
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 44 lines

-----Original Message-----
From: Arnd Bergmann <[email protected]>
Sent: Tuesday, January 9, 2024 3:56 PM
To: Jiawen Wu <[email protected]>; Mengyuan Lou <[email protected]>; Jakub Kicinski <[email protected]>
Cc: Arnd Bergmann <[email protected]>; David S. Miller <[email protected]>; Eric Dumazet <[email protected]>; Paolo Abeni <[email protected]>; Russell King <[email protected]>; Andrew Lunn <[email protected]>; Maciej Fijalkowski <[email protected]>; Andy Shevchenko <[email protected]>; Russell King (Oracle) <[email protected]>; [email protected]; [email protected]
Subject: [PATCH] wangxunx: select CONFIG_PHYLINK where needed

From: Arnd Bergmann <[email protected]>

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")
---
 drivers/net/ethernet/wangxun/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/wangxun/Kconfig +1 -1
index 23cd610bd376..46630f05d8dd 100644
@@ -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
--
Quoted 1 line

2.39.2

#2 lore raw
In reply to Arnd Bergmann

drivers/net/ethernet/wangxun/Kconfig config NGBE · line 30

Quoted 10 lines · Arnd Bergmann
drivers/net/ethernet/wangxun/Kconfig +1 -0
index 23cd610bd376..46630f05d8dd 100644
@@ -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.

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
#3 lore raw
Quoted 13 lines · Russell King (Oracle)

drivers/net/ethernet/wangxun/Kconfig config NGBE · line 30

Quoted 10 lines · Arnd Bergmann
drivers/net/ethernet/wangxun/Kconfig +1 -0
index 23cd610bd376..46630f05d8dd 100644
@@ -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.

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
#4 lore raw
Quoted 22 lines · Russell King (Oracle)
Quoted 13 lines · Russell King (Oracle)

drivers/net/ethernet/wangxun/Kconfig config NGBE · line 30

Quoted 10 lines · Arnd Bergmann
drivers/net/ethernet/wangxun/Kconfig +1 -0
index 23cd610bd376..46630f05d8dd 100644
@@ -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:

Quoted 5 lines
	[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