aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_ptp.c
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2024-12-16 14:53:28 +0000
committerTony Nguyen <[email protected]>2025-01-14 22:37:34 +0000
commit95aca43b4a8266f6b7f038b22a61a5f1be91df7a (patch)
tree7e26b30926ba3a16f25aa8d29ada8288a7cf0a86 /drivers/net/ethernet/intel/ice/ice_ptp.c
parentice: use string choice helpers (diff)
downloadkernel-95aca43b4a8266f6b7f038b22a61a5f1be91df7a.tar.gz
kernel-95aca43b4a8266f6b7f038b22a61a5f1be91df7a.zip
ice: use read_poll_timeout_atomic in ice_read_phy_tstamp_ll_e810
The ice_read_phy_tstamp_ll_e810 function repeatedly reads the PF_SB_ATQBAL register until the TS_LL_READ_TS bit is cleared. This is a perfect candidate for using rd32_poll_timeout. However, the default implementation uses a sleep-based wait. Use read_poll_timeout_atomic macro which is based on the non-sleeping implementation and use it to replace the loop reading in the ice_read_phy_tstamp_ll_e810 function. Co-developed-by: Karol Kolacinski <[email protected]> Signed-off-by: Karol Kolacinski <[email protected]> Signed-off-by: Jacob Keller <[email protected]> Signed-off-by: Anton Nadezhdin <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_ptp.c')
0 files changed, 0 insertions, 0 deletions