Hi Andrew,
Thanks for your review.
YT8831 uses C22 for auto-negotiation itself.
The C45 MMD space is only used to configure 2.5G capability bits, not for Clause45 autoneg.
Calling genphy_c45_config_aneg() was wrong and caused AN restart twice.
This v6 fixes that issue, we keep __genphy_config_aneg() for C22 AN, and use explicit
phy_write_mmd() to set 2.5G advertisement capability which is following `rtl822x_config_aneg`
This is v6 adding Motorcomm YT8831 2.5G PHY basic support.
Changes since v5:
- Fix yt8831_config_aneg(): remove incorrect genphy_c45_config_aneg() call.
YT8831 uses C22 for autoneg; C45 MMD is only used to program 2.5G capability,
not for C45 autoneg. This avoids double autoneg restart.
Patch 1: net: phy: motorcomm: add YT8831 2.5G PHY basic support
Frank.sae (1):
net: phy: motorcomm: add YT8831 2.5G PHY basic support
drivers/net/phy/motorcomm.c | 385 +++++++++++++++++++++++++++++++++++-
1 file changed, 383 insertions(+), 2 deletions(-)
--
2.43.0