Skip to contentSkip to conversation

ionic: fix ptp support config breakage

PATCH Applied Shannon Nelson 3 participants 3 messages May 11, 2021

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

PATCH v4 1/1 ionic: fix ptp support config breakage

When IONIC=y and PTP_1588_CLOCK=m were set in the .config file the driver link failed with undefined references.

We add the dependancy

	depends on PTP_1588_CLOCK || !PTP_1588_CLOCK

to clear this up.

If PTP_1588_CLOCK=m, the depends limits IONIC to =m (or disabled). If PTP_1588_CLOCK is disabled, IONIC can be any of y/m/n.

Fixes 61db421da31b ("ionic: link in the new hw timestamp code")
Cc Jakub Kicinski <[email protected]>
Cc Randy Dunlap <[email protected]>
Cc Allen Hubbe <[email protected]>

---

v4 - Jakub's rewrite
v3 - put version notes below ---, added Allen's Cc v2 - added Fixes tag

---
 drivers/net/ethernet/pensando/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/pensando/Kconfig +1 -0
index 5f8b0bb3af6e..202973a82712 100644
@@ -20,6 +20,7 @@ if NET_VENDOR_PENSANDO
 config IONIC
 	tristate "Pensando Ethernet IONIC Support"
 	depends on 64BIT && PCI
+	depends on PTP_1588_CLOCK || !PTP_1588_CLOCK
 	select NET_DEVLINK
 	select DIMLIB
 	help
Signature · 1 line
2.17.1
Acked-by on v4 1/1
#1 lore raw
Quoted 10 lines · Shannon Nelson

When IONIC=y and PTP_1588_CLOCK=m were set in the .config file the driver link failed with undefined references.

We add the dependancy

	depends on PTP_1588_CLOCK || !PTP_1588_CLOCK

to clear this up.

If PTP_1588_CLOCK=m, the depends limits IONIC to =m (or disabled). If PTP_1588_CLOCK is disabled, IONIC can be any of y/m/n.

Quoted 6 lines
Fixes 61db421da31b ("ionic: link in the new hw timestamp code")
Cc Jakub Kicinski <[email protected]>
Cc Randy Dunlap <[email protected]>
Cc Allen Hubbe <[email protected]>

Thanks.

Quoted 22 lines

---

v4 - Jakub's rewrite
v3 - put version notes below ---, added Allen's Cc v2 - added Fixes tag

---
 drivers/net/ethernet/pensando/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/pensando/Kconfig +1 -0
index 5f8b0bb3af6e..202973a82712 100644
@@ -20,6 +20,7 @@ if NET_VENDOR_PENSANDO
 config IONIC
 	tristate "Pensando Ethernet IONIC Support"
 	depends on 64BIT && PCI
+	depends on PTP_1588_CLOCK || !PTP_1588_CLOCK
 	select NET_DEVLINK
 	select DIMLIB
 	help
Signature · 1 line
~Randy
#2 lore raw
In reply to Shannon Nelson
This patch was applied to bpf/bpf.git (refs/heads/master):

Hello:

This patch was applied to bpf/bpf.git (refs/heads/master):

Quoted 8 lines · On Tue, 11 May 2021 11:11:32 -0700 you wrote:

When IONIC=y and PTP_1588_CLOCK=m were set in the .config file the driver link failed with undefined references.

We add the dependancy

	depends on PTP_1588_CLOCK || !PTP_1588_CLOCK

to clear this up.

[...]

Here is the summary with links:
- [v4,net] ionic: fix ptp support config breakage

    https://git.kernel.org/bpf/bpf/c/bcbda3fc6162

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html