[PATCH net v8 09/10] can: rockchip_canfd: prevent timestamp work from rearming after bus-off
Cunhao Lu
1579567540 at qq.com
Sun Nov 8 21:34:36 PST 2026
Hi,
> > The bus-off IRQ cancels timestamp work asynchronously. If the worker
> > is already running, it can requeue itself after cancellation and keep
> > polling while the controller remains bus-off.
>
> What about using disable_delayed_work(), which avoids re-scheduling.
>
> For an example see:
> https://lore.kernel.org/all/20261108-gs_usb-fixes-v5-6-d52dd4940d46@pengutronix.de/
Thanks for the suggestion and the example. I'll switch to disable_delayed_work() in the next version.
I'll retain the lock and active check around counter reads, since the bus-off path resets the controller immediately after stopping timestamp work.
Best regards,
Cunhao Lu
More information about the Linux-rockchip
mailing list