Skip to contentSkip to conversation

bnxt_en: support PPS in/out on all pins

PATCH Applied Vadim Fedorenko 3 participants 3 messages Oct 19, 2025 – Oct 22, 2025

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

PATCH v2 1/1 bnxt_en: support PPS in/out on all pins

Add supported_extts_flags and supported_perout_flags configuration to make the driver complaint with the latest API.

Initialize channel information to 0 to avoid confusing users, because HW doesn't actually care about channels.

---
 drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +2 -1
index db81cf6d5289..1425a75de9a1 100644
@@ -952,7 +952,6 @@ static int bnxt_ptp_pps_init(struct bnxt *bp)
 		snprintf(ptp_info->pin_config[i].name,
 			 sizeof(ptp_info->pin_config[i].name), "bnxt_pps%d", i);
 		ptp_info->pin_config[i].index = i;
-		ptp_info->pin_config[i].chan = i;
 		if (*pin_usg == BNXT_PPS_PIN_PPS_IN)
 			ptp_info->pin_config[i].func = PTP_PF_EXTTS;
 		else if (*pin_usg == BNXT_PPS_PIN_PPS_OUT)
@@ -969,6 +968,8 @@ static int bnxt_ptp_pps_init(struct bnxt *bp)
 	ptp_info->n_per_out = 1;
 	ptp_info->pps = 1;
 	ptp_info->verify = bnxt_ptp_verify;
+	ptp_info->supported_extts_flags = PTP_RISING_EDGE | PTP_STRICT_FLAGS;
+	ptp_info->supported_perout_flags = PTP_PEROUT_DUTY_CYCLE;
 
 	return 0;
 }
Signature · 1 line
2.47.3
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 25 lines · Vadim Fedorenko

Add supported_extts_flags and supported_perout_flags configuration to make the driver complaint with the latest API.

Initialize channel information to 0 to avoid confusing users, because HW doesn't actually care about channels.

---
 drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +0 -1
index db81cf6d5289..1425a75de9a1 100644
@@ -952,7 +952,6 @@ static int bnxt_ptp_pps_init(struct bnxt *bp)
                snprintf(ptp_info->pin_config[i].name,
                         sizeof(ptp_info->pin_config[i].name), "bnxt_pps%d", i);
                ptp_info->pin_config[i].index = i;
-               ptp_info->pin_config[i].chan = i;
                if (*pin_usg == BNXT_PPS_PIN_PPS_IN)
                        ptp_info->pin_config[i].func = PTP_PF_EXTTS;
                else if (*pin_usg == BNXT_PPS_PIN_PPS_OUT)

drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c static int bnxt_ptp_pps_init(struct bnxt *bp) · line 975

Quoted 8 lines
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +2 -0
@@ -969,6 +968,8 @@ static int bnxt_ptp_pps_init(struct bnxt *bp)
        ptp_info->n_per_out = 1;
        ptp_info->pps = 1;
        ptp_info->verify = bnxt_ptp_verify;
+       ptp_info->supported_extts_flags = PTP_RISING_EDGE | PTP_STRICT_FLAGS;
+       ptp_info->supported_perout_flags = PTP_PEROUT_DUTY_CYCLE;
 
        return 0;
 }
Quoted 3 lines

--
2.47.3

#2 lore raw
In reply to Vadim Fedorenko
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Sun, 19 Oct 2025 22:57:20 +0000 you wrote:

Add supported_extts_flags and supported_perout_flags configuration to make the driver complaint with the latest API.

Initialize channel information to 0 to avoid confusing users, because HW doesn't actually care about channels.

[...]

Here is the summary with links:
- [net-next,v2] bnxt_en: support PPS in/out on all pins

    https://git.kernel.org/netdev/net-next/c/91f76771dba0

You are awesome, thank you!

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