]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bnxt_en: Add PTP .getcrosststamp() interface to get device/host times
authorPavan Chebbi <pavan.chebbi@broadcom.com>
Thu, 8 Jan 2026 18:35:17 +0000 (10:35 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Jan 2026 23:19:50 +0000 (15:19 -0800)
commitc470195b989fe7b9f92297e465c4e8a2363c0bb3
treed3c3bf8e7d590418d023816f8bb25b2e290232a0
parentfdb573d675e3ac50f0b58aaa35bfe7e8c585ba5f
bnxt_en: Add PTP .getcrosststamp() interface to get device/host times

.getcrosststamp() helps the applications to obtain a snapshot of
device and host time almost taken at the same time. This function
will report PCIe PTM device and host times to any application using
the ioctl PTP_SYS_OFFSET_PRECISE. The device time from the HW is
48-bit and needs to be converted to 64-bit.

Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20260108183521.215610-3-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c