Re: [PATCH net-next v4 3/8] net: dsa: motorcomm: Identify port type at runtime

From: Andrew Lunn

Date: Fri Sep 25 2026 - 11:12:14 EST


On Wed, Sep 23, 2026 at 10:19:35AM +0800, David Yang wrote:
> The yt921x_port_is_internal/external() macros hardcoded the port layout:
> they treat ports 8 and 9 as external on every chip and count the dummy
> ports as internal.
>
> Identify the actual port capabilities using chip info and track
> configuration of external ports (although only SerDes is supported now).
> This is a hardening and cleanup step ahead of the SerDes PCS support, no
> behavior changes intended.
>
> Signed-off-by: David Yang <mmyangfl@xxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew