[PATCH iwl-net] ice: Skip PTP timestamp processing during release
Sergey Temerkhanov
sergey.temerkhanov at intel.com
Thu Oct 1 11:52:32 UTC 2026
Do not run a timestamp processing callback on unready hardware
thus avoiding hitting uninitialized structures etc.
Fixes: 88b68f35eb43 ("ice: PTP: fix missing timestamps on E825 hardware")
Signed-off-by: Sergey Temerkhanov <sergey.temerkhanov at intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov at intel.com>
---
drivers/net/ethernet/intel/ice/ice_ptp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c
index 24d4ab2197c3..d04a4099db92 100644
--- a/drivers/net/ethernet/intel/ice/ice_ptp.c
+++ b/drivers/net/ethernet/intel/ice/ice_ptp.c
@@ -2806,6 +2806,9 @@ s8 ice_ptp_request_ts(struct ice_ptp_tx *tx, struct sk_buff *skb)
void ice_ptp_process_ts(struct ice_pf *pf)
{
+ if (pf->ptp.state != ICE_PTP_READY)
+ return;
+
switch (pf->ptp.tx_interrupt_mode) {
case ICE_PTP_TX_INTERRUPT_NONE:
/* This device has the clock owner handle timestamps for it */
--
2.53.0
More information about the Intel-wired-lan
mailing list