Re: [PATCH net v4] net: dsa: mt7530: fix .get_stats64 sleeping in atomic context

Andrew Lunn
2026-04-30T00:13:07Z

> > The priv->bus pointer is initialized during probe. However,
> > INIT_DELAYED_WORK() is only called in mt753x_setup(), which might never
> > execute if the DSA tree remains incomplete.

The opposite of .setup() is .teardown(). So if the delayed work is
setup is setup() it should be cancelled in .teardown, to keeps things
symmetric.

Andrew