From: Przemyslaw Korba The i40e driver always supported only rising edge detection, so advertise PTP_RISING_EDGE, and PTP_STRICT_FLAGS to ensure the PTP core properly validates user requests. Fixes: 7c571ac57d9d ("net: ptp: introduce .supported_extts_flags to ptp_clock_info") Signed-off-by: Przemyslaw Korba Reviewed-by: Arkadiusz Kubalewski Reviewed-by: Aleksandr Loktionov Reviewed-by: Jacob Keller Reviewed-by: Simon Horman Tested-by: Sunitha Mekala (A Contingent worker at Intel) Signed-off-by: Tony Nguyen --- drivers/net/ethernet/intel/i40e/i40e_ptp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/intel/i40e/i40e_ptp.c b/drivers/net/ethernet/intel/i40e/i40e_ptp.c index 7d07c389bb23..c4525bfab09c 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_ptp.c +++ b/drivers/net/ethernet/intel/i40e/i40e_ptp.c @@ -1344,6 +1344,8 @@ static int i40e_init_pin_config(struct i40e_pf *pf) pf->ptp_caps.n_ext_ts = 2; pf->ptp_caps.pps = 1; pf->ptp_caps.n_per_out = 2; + pf->ptp_caps.supported_extts_flags = PTP_RISING_EDGE | + PTP_STRICT_FLAGS; pf->ptp_caps.pin_config = kzalloc_objs(*pf->ptp_caps.pin_config, pf->ptp_caps.n_pins); -- 2.47.1