Skip to contentSkip to conversation

net: ti: icssg-prueth: add PTP dependency

PATCH Applied Arnd Bergmann 4 participants 4 messages Sep 12, 2023 – Sep 15, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ti: icssg-prueth: add PTP dependency

From: Arnd Bergmann <[email protected]>

The driver can now use PTP if enabled but fails to link built-in if PTP is a loadable module:

aarch64-linux-ld: drivers/net/ethernet/ti/icssg/icss_iep.o: in function `icss_iep_get_ptp_clock_idx':
icss_iep.c:(.text+0x200): undefined reference to `ptp_clock_index'

Add the usual dependency to avoid this.

Fixes 186734c158865 ("net: ti: icssg-prueth: add packet timestamping and ptp support")
---
 drivers/net/ethernet/ti/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/ti/Kconfig +1 -0
index 7f3e2e96c6e20..26ddc26fc7b8d 100644
@@ -201,6 +201,7 @@ config TI_ICSSG_PRUETH
 
 config TI_ICSS_IEP
 	tristate "TI PRU ICSS IEP driver"
+	depends on PTP_1588_CLOCK_OPTIONAL
 	depends on TI_PRUSS
 	default TI_PRUSS
 	help
Signature · 1 line
2.39.2
#1 lore raw

PATCH 1/1 net: ti: icssg-prueth: add PTP dependency

Quoted 5 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The driver can now use PTP if enabled but fails to link built-in if PTP is a loadable module:

Quoted 7 lines

aarch64-linux-ld: drivers/net/ethernet/ti/icssg/icss_iep.o: in function `icss_iep_get_ptp_clock_idx':
icss_iep.c:(.text+0x200): undefined reference to `ptp_clock_index'

Add the usual dependency to avoid this.

Fixes 186734c158865 ("net: ti: icssg-prueth: add packet timestamping and ptp support")
Quoted 16 lines
---
 drivers/net/ethernet/ti/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/ti/Kconfig +1 -0
index 7f3e2e96c6e20..26ddc26fc7b8d 100644
@@ -201,6 +201,7 @@ config TI_ICSSG_PRUETH
 
 config TI_ICSS_IEP
 	tristate "TI PRU ICSS IEP driver"
+	depends on PTP_1588_CLOCK_OPTIONAL
 	depends on TI_PRUSS
 	default TI_PRUSS
 	help
Signature · 2 lines
Thanks and Regards,
Danish
Reviewed-by on v1 1/1
#2 lore raw
In reply to Arnd Bergmann
Quoted 5 lines · Tue, Sep 12, 2023 at 08:54:51PM CEST, [email protected] wrote:

From: Arnd Bergmann <[email protected]>

The driver can now use PTP if enabled but fails to link built-in if PTP is a loadable module:

Quoted 7 lines

aarch64-linux-ld: drivers/net/ethernet/ti/icssg/icss_iep.o: in function `icss_iep_get_ptp_clock_idx':
icss_iep.c:(.text+0x200): undefined reference to `ptp_clock_index'

Add the usual dependency to avoid this.

Fixes 186734c158865 ("net: ti: icssg-prueth: add packet timestamping and ptp support")
#3 lore raw
In reply to Arnd Bergmann
This patch was applied to netdev/net.git (main) by David S. Miller <[email protected]>:

Hello:

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

Quoted 9 lines · On Tue, 12 Sep 2023 20:54:51 +0200 you wrote:

From: Arnd Bergmann <[email protected]>

The driver can now use PTP if enabled but fails to link built-in if PTP is a loadable module:

aarch64-linux-ld: drivers/net/ethernet/ti/icssg/icss_iep.o: in function `icss_iep_get_ptp_clock_idx':
icss_iep.c:(.text+0x200): undefined reference to `ptp_clock_index'

[...]

Here is the summary with links:
- net: ti: icssg-prueth: add PTP dependency

    https://git.kernel.org/netdev/net/c/a8f367f7e131

You are awesome, thank you!

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