summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2024-05-17 16:58:08 +0300
committerPaolo Abeni <pabeni@redhat.com>2024-05-22 11:09:04 +0300
commiteda40be3a5ff3fdce513d2bcfeaca8cc16cf962a (patch)
treee6f8660dc5638170c84ebfbc790ae10129e994e1 /ipc
parent30a92c9e3d6b073932762bef2ac66f4ee784c657 (diff)
downloadlinux-eda40be3a5ff3fdce513d2bcfeaca8cc16cf962a.tar.xz
net: lan966x: Remove ptp traps in case the ptp is not enabled.
Lan966x is adding ptp traps to redirect the ptp frames to the CPU such that the HW will not forward these frames anywhere. The issue is that in case ptp is not enabled and the timestamping source is et to HWTSTAMP_SOURCE_NETDEV then these traps would not be removed on the error path. Fix this by removing the traps in this case as they are not needed. Fixes: 54e1ed69c40a ("net: lan966x: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()") Suggested-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Link: https://lore.kernel.org/r/20240517135808.3025435-1-horatiu.vultur@microchip.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions