> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of Karol > Kolacinski > Sent: Tuesday, January 23, 2024 4:21 PM > To: [email protected] > Cc: Keller, Jacob E <[email protected]>; [email protected]; > Kolacinski, Karol <[email protected]>; Nguyen, Anthony L > <[email protected]>; Brandeburg, Jesse <[email protected]> > Subject: [Intel-wired-lan] [PATCH v7 iwl-next 1/7] ice: introduce PTP state > machine > > Add PTP state machine so that the driver can correctly identify PTP > state around resets. > When the driver got information about ungraceful reset, PTP was not > prepared for reset and it returned error. When this situation occurs, > prepare PTP before rebuilding its structures. > > Co-authored-by: Karol Kolacinski <[email protected]> > Signed-off-by: Jacob Keller <[email protected]> > Signed-off-by: Karol Kolacinski <[email protected]> > Reviewed-by: Jacob Keller <[email protected]> > --- > V5 -> V6: refactored prepare_for_reset() bit in ice_ptp_reset() > V3 -> V4: removed merge conflict leftovers > V2 -> V3: fixed Tx timestamps missing by moving ICE_PTP_READY before > ice_ptp_init_work() > > drivers/net/ethernet/intel/ice/ice.h | 1 - > drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 +- > drivers/net/ethernet/intel/ice/ice_ptp.c | 110 +++++++++++-------- > drivers/net/ethernet/intel/ice/ice_ptp.h | 10 ++ > 4 files changed, 74 insertions(+), 49 deletions(-) >
Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel)
