Re: [PATCH net-next] net: dsa: microchip: Don't embed struct phy_device to maintain the port state

From: Simon Horman

Date: Fri Mar 20 2026 - 13:40:52 EST


On Thu, Mar 19, 2026 at 07:17:04PM +0100, Maxime Chevallier wrote:
> The KSZ9477 maintains the SGMII port's state for speed, duplex and link
> status to be able to fixup the accesses to its internal older version of
> the Designware XPCS. However, it does so by embedding a full instance of
> struct phy_device, only to use the 'speed', 'link' and 'duplex' fields.
>
> This is also only used for the SGMII port, it's otherwise unused for all
> other regular ports.
>
> Replace that with simple int/bool values.
>
> Signed-off-by: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>