]> git.ipfire.org Git - thirdparty/linux.git/commit
igc: Use provided clock ID for history snapshot
authorThomas Gleixner <tglx@kernel.org>
Fri, 29 May 2026 20:00:44 +0000 (22:00 +0200)
committerThomas Gleixner <tglx@kernel.org>
Thu, 4 Jun 2026 09:04:17 +0000 (11:04 +0200)
commitaf1816babcd9eff5c40eaf0de149b469debdfdb4
tree40f0bcafd1825f10c1476da572d89c82eb82aa4a
parent23bc637750e4142ef9e86a06872fdf32e74a9050
igc: Use provided clock ID for history snapshot

The PTP core indicates in system_device_crosststamp::clock_id the clock ID
for which the system time stamp should be taken. That allows to utilize
hardware timestamps with e.g. AUX clocks.

Save the provided clock ID and use it in igc_phc_get_syncdevicetime() for
taking the history snapshot.

No functional change.

Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Tested-by: Arthur Kiyanovski <akiyano@amazon.com>
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20260529195557.637381831@kernel.org
drivers/net/ethernet/intel/igc/igc.h
drivers/net/ethernet/intel/igc/igc_ptp.c