Unverified Commit c92d5c85 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!11279 ice: Don't process extts if PTP is disabled

parents 8f9ef930 cb0cc76a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1477,6 +1477,10 @@ void ice_ptp_extts_event(struct ice_pf *pf)
	u8 chan, tmr_idx;
	u32 hi, lo;

	/* Don't process timestamp events if PTP is not ready */
	if (!test_bit(ICE_FLAG_PTP, pf->flags))
		return;

	tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned;
	/* Event time is captured by one of the two matched registers
	 *      GLTSYN_EVNT_L: 32 LSB of sampled time event