Skip to contentSkip to conversation

net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module

PATCH Applied Horatiu Vultur 2 participants 2 messages Feb 12, 2022 – Feb 13, 2022

Subsystems (3)
lore
Share & tools
lore

Horatiu Vultur

author maintainer
#0 lore raw

PATCH 1/1 net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module

When CONFIG_PTP_1588_CLOCK is compiled as a module, then the linking of the lan966x fails because it can't find references to the following functions 'ptp_clock_index', 'ptp_clock_register' and 'ptp_clock_unregister'

The fix consists in adding CONFIG_PTP_1588_CLOCK_OPTIONAL as a dependency for the driver.

Fixes d096459494a887 ("net: lan966x: Add support for ptp clocks")
---
 drivers/net/ethernet/microchip/lan966x/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/microchip/lan966x/Kconfig +1 -0
index ac273f84b69e..4241ff0e5098 100644
@@ -1,5 +1,6 @@
 config LAN966X_SWITCH
 	tristate "Lan966x switch driver"
+	depends on PTP_1588_CLOCK_OPTIONAL
 	depends on HAS_IOMEM
 	depends on OF
 	depends on NET_SWITCHDEV
Signature · 1 line
2.33.0
#1 lore raw
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Quoted 9 lines · On Sat, 12 Feb 2022 21:45:44 +0100 you wrote:

When CONFIG_PTP_1588_CLOCK is compiled as a module, then the linking of the lan966x fails because it can't find references to the following functions 'ptp_clock_index', 'ptp_clock_register' and 'ptp_clock_unregister'

The fix consists in adding CONFIG_PTP_1588_CLOCK_OPTIONAL as a dependency for the driver.

[...]

Here is the summary with links:
- [net-next] net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module

    https://git.kernel.org/netdev/net-next/c/1da52b0e4724

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html