]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ice: Add in/out PTP pin delays
authorKarol Kolacinski <karol.kolacinski@intel.com>
Wed, 4 Dec 2024 09:46:11 +0000 (10:46 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 14 Jan 2025 22:37:34 +0000 (14:37 -0800)
commit914639464b760a4ec659a46cc2de9a2fdc4eff5a
tree1e10621795d98e63780131253164f765ce8c46bb
parentef9a64c07294abcda51e1b6adcbf0392afe2c62d
ice: Add in/out PTP pin delays

HW can have different input/output delays for each of the pins.

Currently, only E82X adapters have delay compensation based on TSPLL
config and E810 adapters have constant 1 ms compensation, both cases
only for output delays and the same one for all pins.

E825 adapters have different delays for SDP and other pins. Those
delays are also based on direction and input delays are different than
output ones. This is the main reason for moving delays to pin
description structure.

Add a field in ice_ptp_pin_desc structure to reflect that. Delay values
are based on approximate calculations of HW delays based on HW spec.

Implement external timestamp (input) delay compensation.

Remove existing definitions and wrappers for periodic output propagation
delays.

Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Sunitha Mekala <sunithax.d.mekala@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ptp.c
drivers/net/ethernet/intel/ice/ice_ptp.h
drivers/net/ethernet/intel/ice/ice_ptp_consts.h
drivers/net/ethernet/intel/ice/ice_ptp_hw.h