netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] bnxt_en: support PPS in/out on all pins
@ 2025-10-16 22:23 Vadim Fedorenko
  2025-10-17  3:45 ` Pavan Chebbi
  0 siblings, 1 reply; 7+ messages in thread
From: Vadim Fedorenko @ 2025-10-16 22:23 UTC (permalink / raw)
  To: Michael Chan, Pavan Chebbi, Jakub Kicinski
  Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Paolo Abeni,
	Richard Cochran, netdev, Vadim Fedorenko

n_ext_ts and n_per_out from ptp_clock_caps are checked as a max number
of pins rather than max number of active pins.

supported_extts_flags and supported_perout_flags have to be added as
well to make the driver complaint with the latest API.

Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
---
 drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c
index db81cf6d5289..c9b7df669415 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c
@@ -965,10 +965,12 @@ static int bnxt_ptp_pps_init(struct bnxt *bp)
 	hwrm_req_drop(bp, req);
 
 	/* Only 1 each of ext_ts and per_out pins is available in HW */
-	ptp_info->n_ext_ts = 1;
-	ptp_info->n_per_out = 1;
+	ptp_info->n_ext_ts = pps_info->num_pins;
+	ptp_info->n_per_out = pps_info->num_pins;
 	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;
 }
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-10-17 16:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-16 22:23 [PATCH net-next] bnxt_en: support PPS in/out on all pins Vadim Fedorenko
2025-10-17  3:45 ` Pavan Chebbi
2025-10-17  8:51   ` Vadim Fedorenko
2025-10-17  9:15     ` Pavan Chebbi
2025-10-17 10:40       ` Vadim Fedorenko
2025-10-17 14:08         ` Pavan Chebbi
2025-10-17 16:39           ` Vadim Fedorenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).