Thread (22 messages) flat view 22 messages, 3 authors, 2d ago

Re: [PATCH net-next v5 3/6] net: dsa: motorcomm: relocate MIB polling initialization to dsa_setup()

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-09-04 13:37:16
Also in: lkml

On Fri, Sep 04, 2026 at 05:54:13PM +0800, Kyle Switch wrote:
Move MIB polling start from probe() to dsa_setup() so that it can
be conditionally enabled based on the actual switch family support,
avoiding attempts to enable it on unsupported switch families.

Signed-off-by: Kyle Switch <redacted>
Much better.

I would word the commit message slightly differently, in order to make
it clear what this patch does vs a future patch.

  > Move MIB polling start from probe() to dsa_setup() so that in a
  > future patch it can be conditionally enabled based on the actual
  > switch family support, avoiding attempts to enable it on
  > unsupported switch families.

What you want to avoid is my asking, did you forget to make it
conditional?

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help