]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ice: Cache perout/extts requests and check flags
authorKarol Kolacinski <karol.kolacinski@intel.com>
Fri, 30 Aug 2024 11:07:20 +0000 (13:07 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 1 Oct 2024 18:11:38 +0000 (11:11 -0700)
commitd755a7e129a5f2b5cafa337f557c72336e900a00
tree53b0ace85b9d32d019844896f7efd5ffc9a9aa40
parente4291b64e11889c73fa9c75e74115721758a3fb4
ice: Cache perout/extts requests and check flags

Cache original PTP GPIO requests instead of saving each parameter in
internal structures for periodic output or external timestamp request.

Factor out all periodic output register writes from ice_ptp_cfg_clkout
to a separate function to improve readability.

Reviewed-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Signed-off-by: Karol Kolacinski <karol.kolacinski@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_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