Skip to content

Commit 7495cc7

Browse files
committed
Revert "[sparx5] Allow restarting PTP"
This reverts commit 3c0913a. This commit was already cherry-picked in our internal BSP, so it would be part of the next release, therefore I will remove it from here.
1 parent f7b2f58 commit 7495cc7

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/net/ethernet/microchip/sparx5/sparx5_netdev.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -307,13 +307,6 @@ static int sparx5_port_hwtstamp_set(struct net_device *dev,
307307
cfg->source != HWTSTAMP_SOURCE_PHYLIB)
308308
return -EOPNOTSUPP;
309309

310-
if((sparx5_port->ptp_rx_cmd && cfg->rx_filter)) {
311-
// Looks like timestamping doesn't get disabled by upper layers
312-
// This is a quick workaround, to prevent failing, if the filters
313-
// are already enabled.
314-
return 0;
315-
}
316-
317310
err = sparx5_ptp_setup_traps(sparx5_port, cfg);
318311
if (err)
319312
return err;

0 commit comments

Comments
 (0)