Re: [PATCH net-next v9 2/7] net: dsa: motorcomm: use max_ports in series for port bounds checking
From: Andrew Lunn
Date: Thu Sep 24 2026 - 11:46:23 EST
On Thu, Sep 24, 2026 at 05:41:41PM +0800, Kyle Switch wrote:
> Replace the hardcoded YT921X_PORT_NUM macro with the per-series
> max_ports field in port validation. This removes family-specific
> constants from the common code path and simplifies adding new
> switch families with different port counts.
>
> No functional change for existing YT921X devices.
>
> Signed-off-by: Kyle Switch <kyle.switch@xxxxxxxxxxxxxx>
For version 8 i gave a Reviewed-by: Andrew Lunn <andrew@xxxxxxx>. You
are supposed to add this here. That then tells me i don't need to look
at it again, and it helpers those Maintainers who do the actual merge
decide if the patchset is ready.
b4 will append these for you.
Andrew
---
pw-bot: cr