Loading
net: dsa: sja1105: reject other RX filters than HWTSTAMP_FILTER_PTP_V2_L2_EVENT
This is all that we can support timestamping, so we shouldn't accept anything else. Also see sja1105_hwtstamp_get(). To avoid erroring out in an inconsistent state, operate on copies of priv->hwts_rx_en and priv->hwts_tx_en, and write them back when nothing else can fail anymore. Fixes: a602afd2 ("net: dsa: sja1105: Expose PTP timestamping ioctls to userspace") Signed-off-by:Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by:
Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250318115716.2124395-3-vladimir.oltean@nxp.com Signed-off-by:
Jakub Kicinski <kuba@kernel.org>