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

Andrew Lunn andrew at lunn.ch
Wed Apr 29 17:12:47 PDT 2026


> > 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



More information about the Linux-mediatek mailing list