Netdev List
 help / color / mirror / Atom feed
* [PATCH net] bnxt_en: enable PTM function
@ 2026-08-06 20:18 Vadim Fedorenko
  2026-08-06 20:35 ` Michael Chan
  0 siblings, 1 reply; 8+ messages in thread
From: Vadim Fedorenko @ 2026-08-06 20:18 UTC (permalink / raw)
  To: Michael Chan, Pavan Chebbi, Somnath Kotur, Andrew Lunn,
	Jakub Kicinski
  Cc: netdev, Vadim Fedorenko

The patch mentioned in Fixes missed one main point of implementing
proper PTM support. To make it fully operational it has to be explicitly
enabled. Add missing call in probe callback and disable it in teardown
callback.

Fixes: c470195b989f ("bnxt_en: Add PTP .getcrosststamp() interface to get device/host times")
Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
---
 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
index 25099077fe4f..8a9c7646b53f 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
@@ -14978,6 +14978,7 @@ static void bnxt_unmap_bars(struct bnxt *bp, struct pci_dev *pdev)
 
 static void bnxt_cleanup_pci(struct bnxt *bp)
 {
+	pci_disable_ptm(bp->pdev);
 	bnxt_unmap_bars(bp, bp->pdev);
 	pci_release_regions(bp->pdev);
 	if (pci_is_enabled(bp->pdev))
@@ -15546,6 +15547,8 @@ static int bnxt_init_board(struct pci_dev *pdev, struct net_device *dev)
 		goto init_err_release;
 	}
 
+	pci_enable_ptm(pdev);
+
 	INIT_WORK(&bp->sp_task, bnxt_sp_task);
 	INIT_DELAYED_WORK(&bp->fw_reset_task, bnxt_fw_reset_task);
 
-- 
2.47.3


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

end of thread, other threads:[~2026-08-08  4:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-06 20:18 [PATCH net] bnxt_en: enable PTM function Vadim Fedorenko
2026-08-06 20:35 ` Michael Chan
2026-08-06 20:45   ` Vadim Fedorenko
2026-08-07 12:51     ` Pavan Chebbi
2026-08-07 14:00       ` Vadim Fedorenko
2026-08-07 16:13         ` Pavan Chebbi
2026-08-07 19:27           ` Vadim Fedorenko
2026-08-08  4:39             ` Pavan Chebbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox