]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ice: Use ice_adapter for PTP shared data instead of auxdev
authorSergey Temerkhanov <sergey.temerkhanov@intel.com>
Wed, 21 Aug 2024 13:09:56 +0000 (15:09 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 1 Oct 2024 18:11:38 +0000 (11:11 -0700)
commite800654e85b5b27966fc6493201f5f8cf658beb6
tree775cfd551dfd6f21203905cdd0cf3819e7686e5e
parentfdb7f54700b1c88e734323a62fea986d9ce5a9c6
ice: Use ice_adapter for PTP shared data instead of auxdev

Use struct ice_adapter to hold shared PTP data and control PTP
related actions instead of auxbus. This allows significant code
simplification and faster access to the container fields used in
the PTP support code.

Move the PTP port list to the ice_adapter container to simplify
the code and avoid race conditions which could occur due to the
synchronous nature of the initialization/access and
certain memory saving can be achieved by moving PTP data into
the ice_adapter itself.

Signed-off-by: Sergey Temerkhanov <sergey.temerkhanov@intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_adapter.c
drivers/net/ethernet/intel/ice/ice_adapter.h
drivers/net/ethernet/intel/ice/ice_ptp.c
drivers/net/ethernet/intel/ice/ice_ptp.h
drivers/net/ethernet/intel/ice/ice_ptp_hw.h