Skip to contentSkip to conversation

net: lan743x: LAN743X selects FIXED_PHY to resolve a link error

PATCH In review Tom Rix 2 participants 2 messages Feb 27, 2023 – Feb 28, 2023

Subsystems (2)
lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH v2 1/1 net: lan743x: LAN743X selects FIXED_PHY to resolve a link error

A rand config causes this link error drivers/net/ethernet/microchip/lan743x_main.o: In function `lan743x_netdev_open':
drivers/net/ethernet/microchip/lan743x_main.c:1512: undefined reference to `fixed_phy_register'

lan743x_netdev_open is controlled by LAN743X
fixed_phy_register is controlled by FIXED_PHY

and the error happens when
CONFIG_LAN743X=y
CONFIG_FIXED_PHY=m

So LAN743X should also select FIXED_PHY

---
v2: Add config setting that trigger the error to commit log

---
 drivers/net/ethernet/microchip/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/microchip/Kconfig +1 -0
index 24c994baad13..43ba71e82260 100644
@@ -47,6 +47,7 @@ config LAN743X
 	depends on PCI
 	depends on PTP_1588_CLOCK_OPTIONAL
 	select PHYLIB
+	select FIXED_PHY
 	select CRC16
 	select CRC32
 	help
Signature · 1 line
2.27.0
maintainer
#1 lore raw

Hello,

Quoted 7 lines · Tom Rix

A rand config causes this link error drivers/net/ethernet/microchip/lan743x_main.o: In function `lan743x_netdev_open':
drivers/net/ethernet/microchip/lan743x_main.c:1512: undefined reference to `fixed_phy_register'

lan743x_netdev_open is controlled by LAN743X
fixed_phy_register is controlled by FIXED_PHY

Quoted 7 lines

and the error happens when
CONFIG_LAN743X=y
CONFIG_FIXED_PHY=m

So LAN743X should also select FIXED_PHY

You are targeting the -net tree, but this lacks a 'Fixes' tag, please post a new version with such info.

If instead the intended target was net-next (as I think it was agreed on previous revision) please repost after that net-next re-opens (in ~1w from now).

Thanks,

Paolo