Re: [PATCH net 1/2] net: fec: don't leave a stale PTP clock pointer after unregister
From: Shengzhuo Wei
Date: Fri Sep 04 2026 - 00:03:31 EST
On 2026-09-04 03:15, Wei Fang wrote:
> Why not move fec_ptp_stop() after unregister_netdev()?
Good point. I was focused on making the PHC index lookup safe
independently of the teardown ordering and followed the approach used by
similar fixes, so I overlooked the simpler solution here.
Moving fec_ptp_stop() after unregister_netdev() is cleaner and restores
the proper lifetime ordering. I will rework patch 1 accordingly and drop
the ptp_clock_index_by_dev() change in v2.
Thanks,
Shengzhuo