]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: dsa: microchip: Don't embed struct phy_device to maintain the port state
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Thu, 19 Mar 2026 18:17:04 +0000 (19:17 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Mar 2026 02:14:35 +0000 (19:14 -0700)
commit2e69e55897dc1898175f42989dd575ca8c467363
tree2006b2ec54861425d2cd65c2f3321b9e3418c221
parentfa782d4df0b7fa5f3f9d2d7d74f422004487836c
net: dsa: microchip: Don't embed struct phy_device to maintain the port state

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@bootlin.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260319181705.1576679-1-maxime.chevallier@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/microchip/ksz9477.c
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_common.h