net: dsa: ocelot: add PTP dependency for NET_DSA_MSCC_OCELOT_EXT
Subsystems (4)
PATCH 1/1 net: dsa: ocelot: add PTP dependency for NET_DSA_MSCC_OCELOT_EXT
From: Arnd Bergmann <[email protected]>
A new user of MSCC_OCELOT_SWITCH_LIB was added, bringing back an old link failure that was fixed with e5f31552674e ("ethernet: fix PTP_1588_CLOCK dependencies"):
x86_64-linux-ld: drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_ptp_enable':
ocelot_ptp.c:(.text+0x8ee): undefined reference to `ptp_find_pin'
x86_64-linux-ld: drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_get_ts_info':
ocelot_ptp.c:(.text+0xd5d): undefined reference to `ptp_clock_index'
x86_64-linux-ld: drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_init_timestamp':
ocelot_ptp.c:(.text+0x15ca): undefined reference to `ptp_clock_register'
x86_64-linux-ld: drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_deinit_timestamp':
ocelot_ptp.c:(.text+0x16b7): undefined reference to `ptp_clock_unregister'
Add the same PTP dependency here, as well as in the MSCC_OCELOT_SWITCH_LIB symbol itself to make it more obvious what is going on when the next driver selects it.
--- drivers/net/dsa/ocelot/Kconfig | 1 + drivers/net/ethernet/mscc/Kconfig | 1 + 2 files changed, 2 insertions(+)
drivers/net/dsa/ocelot/Kconfig +1 -0
@@ -12,6 +12,7 @@ config NET_DSA_MSCC_OCELOT_EXT tristate "Ocelot External Ethernet switch support" depends on NET_DSA && SPI depends on NET_VENDOR_MICROSEMI + depends on PTP_1588_CLOCK_OPTIONAL select MDIO_MSCC_MIIM select MFD_OCELOT_CORE select MSCC_OCELOT_SWITCH_LIB
drivers/net/ethernet/mscc/Kconfig +1 -0
@@ -13,6 +13,7 @@ if NET_VENDOR_MICROSEMI # Users should depend on NET_SWITCHDEV, HAS_IOMEM, BRIDGE config MSCC_OCELOT_SWITCH_LIB + depends on PTP_1588_CLOCK_OPTIONAL select NET_DEVLINK select REGMAP_MMIO select PACKING
Signature · 1 line
2.39.1
Hi Arnd,
Quoted 15 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
A new user of
MSCC_OCELOT_SWITCH_LIBwas added, bringing back an old link failure that was fixed withe5f31552674e("ethernet: fixPTP_1588_CLOCKdependencies"):x86_64-linux-ld:
drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_ptp_enable':
ocelot_ptp.c:(.text+0x8ee): undefined reference to `ptp_find_pin'
x86_64-linux-ld:drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_get_ts_info':
ocelot_ptp.c:(.text+0xd5d): undefined reference to `ptp_clock_index'
x86_64-linux-ld:drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_init_timestamp':
ocelot_ptp.c:(.text+0x15ca): undefined reference to `ptp_clock_register'
x86_64-linux-ld:drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_deinit_timestamp':
ocelot_ptp.c:(.text+0x16b7): undefined reference to `ptp_clock_unregister'
Quoted 7 lines
Add the same PTP dependency here, as well as in the
MSCC_OCELOT_SWITCH_LIBsymbol itself to make it more obvious what is going on when the next driver selects it.Fixes 3d7316ac81ac ("net: dsa: ocelot: add external ocelot switch control")Signed-off-by Arnd Bergmann <[email protected]>---
I think this'll have to go through net-next, because ocelot-ext hasn't been merged yet... unless there's something I don't fully understand (which is very likely)
Thanks for finding / fixing! I'll run a quick verification when I have access to hardware. Probably won't be for a couple days though.
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 15 lines · On Thu, 9 Feb 2023 13:44:17 +0100 you wrote:
From: Arnd Bergmann <[email protected]>
A new user of
MSCC_OCELOT_SWITCH_LIBwas added, bringing back an old link failure that was fixed withe5f31552674e("ethernet: fixPTP_1588_CLOCKdependencies"):x86_64-linux-ld:
drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_ptp_enable':
ocelot_ptp.c:(.text+0x8ee): undefined reference to `ptp_find_pin'
x86_64-linux-ld:drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_get_ts_info':
ocelot_ptp.c:(.text+0xd5d): undefined reference to `ptp_clock_index'
x86_64-linux-ld:drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_init_timestamp':
ocelot_ptp.c:(.text+0x15ca): undefined reference to `ptp_clock_register'
x86_64-linux-ld:drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_deinit_timestamp':
ocelot_ptp.c:(.text+0x16b7): undefined reference to `ptp_clock_unregister'
Quoted 1 line
[...]
Here is the summary with links:
- net: dsa: ocelot: add PTP dependency for NET_DSA_MSCC_OCELOT_EXT
https://git.kernel.org/netdev/net-next/c/f99f22e02f29
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html