summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2025-08-25 09:55:43 +0300
committerJakub Kicinski <kuba@kernel.org>2025-08-27 03:10:51 +0300
commit882e57cbc7204662f6c5672d5b04336c1d790b03 (patch)
treeec2aa2cd87d17ed7d6cf56d816d337c40c36a702 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parente81a7f65288c7e2cfb7e7890f648e099fd885ab3 (diff)
downloadlinux-882e57cbc7204662f6c5672d5b04336c1d790b03.tar.xz
phy: mscc: Fix when PTP clock is register and unregister
It looks like that every time when the interface was set down and up the driver was creating a new ptp clock. On top of this the function ptp_clock_unregister was never called. Therefore fix this by calling ptp_clock_register and initialize the mii_ts struct inside the probe function and call ptp_clock_unregister when driver is removed. Fixes: 7d272e63e0979d ("net: phy: mscc: timestamping and PHC support") Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Link: https://patch.msgid.link/20250825065543.2916334-1-horatiu.vultur@microchip.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions