summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2026-09-18 11:17:20 +0200
committerPaolo Abeni <pabeni@redhat.com>2026-09-22 12:57:37 +0200
commit4ef25721f7c89392b58e53c84e09b508e8d8c0aa (patch)
treecdb45167d9eea073f40ff3c8ed02c8e545535473 /include/linux/debugobjects.h
parentfea7dd7e93cccfd5d58423146a2e0b9887e86bce (diff)
net: phy: realtek: use C45 for RTL8365MB-VC internal PHY MMD access
The RTL8365MB-VC PHYs are integrated into the switch and have no MMD registers of their own. What phylib would access as MMD registers (the EEE ability/advertisement) lives in the switch's OCP registers instead. For a C22 PHY, phy_read_mmd()/phy_write_mmd() use C22 indirect-MMD, which this hardware does not implement. Point .read_mmd/.write_mmd at genphy_{read,write}_mmd_c45() so phylib issues those MMD accesses over C45, where the DSA user MDIO bus can carry them to the switch's OCP registers. This patch only redirects the MMD access path; it does not enable EEE. The OCP mapping (the DSA bus .read_c45/.write_c45 handlers) and EEE support are added by the following patch. Until then an MMD access returns -EOPNOTSUPP; the only one that runs is the EEE-ability read in phy_probe(), which phylib ignores, so probe, link and traffic are unaffected and ethtool --show-eee reports EEE unsupported -- the same as before this series, not a regression (verified on an RTL8365MB-VC). Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Linus Walleij <linusw@kernel.org> Reviewed-by: Luiz Angelo Daros de Luca <luizluca@gmail.com> Link: https://patch.msgid.link/20260918091722.3270534-2-o.rempel@pengutronix.de Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions