> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of Anton > Nadezhdin > Sent: 16 December 2024 20:23 > To: [email protected] > Cc: [email protected]; Nguyen, Anthony L <[email protected]>; > Kitszel, Przemyslaw <[email protected]>; [email protected]; > Keller, Jacob E <[email protected]>; Kolacinski, Karol > <[email protected]>; Olech, Milena <[email protected]>; > Nadezhdin, Anton <[email protected]> > Subject: [Intel-wired-lan] [PATCH iwl-next v2 1/5] ice: use > rd32_poll_timeout_atomic in ice_read_phy_tstamp_ll_e810 > > From: Jacob Keller <[email protected]> > > 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. > > Add a new rd32_poll_timeout_atomic macro which is based on the non-sleeping > read_poll_timeout_atomic implementation. Use this to replace the loop reading > in the ice_read_phy_tstamp_ll_e810 function. > > This will also be used in the future when low latency PHY timer updates are > supported. > > Co-developed-by: Karol Kolacinski <[email protected]> > Signed-off-by: Karol Kolacinski <[email protected]> > Signed-off-by: Jacob Keller <[email protected]> > Reviewed-by: Milena Olech <[email protected]> > Signed-off-by: Anton Nadezhdin <[email protected]> > --- > drivers/net/ethernet/intel/ice/ice_osdep.h | 3 +++ > drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 30 +++++++++------------ > drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 2 +- > 3 files changed, 17 insertions(+), 18 deletions(-) >
Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel)
