[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230227130535.2828181-1-trix@redhat.com>
Date: Mon, 27 Feb 2023 08:05:35 -0500
From: Tom Rix <trix@...hat.com>
To: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, steen.hegelund@...rochip.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Tom Rix <trix@...hat.com>
Subject: [PATCH v2] 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
Signed-off-by: Tom Rix <trix@...hat.com>
---
v2: Add config setting that trigger the error to commit log
---
drivers/net/ethernet/microchip/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/microchip/Kconfig b/drivers/net/ethernet/microchip/Kconfig
index 24c994baad13..43ba71e82260 100644
--- a/drivers/net/ethernet/microchip/Kconfig
+++ b/drivers/net/ethernet/microchip/Kconfig
@@ -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
--
2.27.0
Powered by blists - more mailing lists