]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
idpf: read lower clock bits inside the time sandwich
authorMina Almasry <almasrymina@google.com>
Thu, 11 Dec 2025 10:19:29 +0000 (10:19 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 20 Jan 2026 20:55:34 +0000 (12:55 -0800)
commitbdfc7b55adcd04834ccc1b6b13e55e3fd7eaa789
tree1956366ae36c78635a3e398d85d203758e2326b9
parentd3f867e7a04678640ebcbfb81893c59f4af48586
idpf: read lower clock bits inside the time sandwich

PCIe reads need to be done inside the time sandwich because PCIe
writes may get buffered in the PCIe fabric and posted to the device
after the _postts completes. Doing the PCIe read inside the time
sandwich guarantees that the write gets flushed before the _postts
timestamp is taken.

Cc: lrizzo@google.com
Cc: namangulati@google.com
Cc: willemb@google.com
Cc: intel-wired-lan@lists.osuosl.org
Cc: milena.olech@intel.com
Cc: jacob.e.keller@intel.com
Fixes: 5cb8805d2366 ("idpf: negotiate PTP capabilities and get PTP clock")
Suggested-by: Shachar Raindel <shacharr@google.com>
Signed-off-by: Mina Almasry <almasrymina@google.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Samuel Salin <Samuel.salin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/idpf/idpf_ptp.c