Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions drivers/net/phy/as21xx_1.9.2/as21xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ int aeon_cl45_read(struct phy_device *phydev, int dev_addr,
mutex_lock(&bus->mdio_lock);
ret = __mdiobus_c45_read(bus, phy_addr, dev_addr, phy_reg);
mutex_unlock(&bus->mdio_lock);
aeon_mdio_patch(phydev);
Comment thread
meehien marked this conversation as resolved.

return ret;
}
Expand Down Expand Up @@ -1481,7 +1480,17 @@ static int aeon_config_led(struct phy_device *phydev)
static int aeon_gen1_match_phy_device(struct phy_device *phydev,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, this seems the rootcause of these phyad 30 errors on mxl bus which looked really strange. Thanks for it

@frank-w frank-w Aug 2, 2026 •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like i catched the wrong line...meant the line with the read_pid before checking for aeonsemi phy

	u32 phy_id = aeon_gen1_read_pid(phydev);

const struct phy_driver *phydrv)
{
u32 phy_id = aeon_gen1_read_pid(phydev);
u32 phy_id;

/* Skip PHYs that are not Aeonsemi. Probing every PHY on every bus
* sends vendor register accesses to foreign devices, which on a
* DSA switch relay bus become failing firmware mailbox commands.
*/
if (!phy_id_compare_vendor(phydev->c45_ids.device_ids[MDIO_MMD_PCS],
PHY_VENDOR_AEONSEMI))
return genphy_match_phy_device(phydev, phydrv);

phy_id = aeon_gen1_read_pid(phydev);

if (phy_id != PHY_ID_AS21XXX)
return 0;
Expand All @@ -1495,6 +1504,11 @@ static int aeon_gen1_match_phy_device(struct phy_device *phydev,
static int aeon_gen2_match_phy_device(struct phy_device *phydev,
const struct phy_driver *phydrv)
{
/* Skip PHYs that are not Aeonsemi - see aeon_gen1_match_phy_device(). */
if (!phy_id_compare_vendor(phydev->c45_ids.device_ids[MDIO_MMD_PCS],
PHY_VENDOR_AEONSEMI))
return genphy_match_phy_device(phydev, phydrv);

/* AEONSEMI get pid. */
phydev->phy_id = aeon_gen2_read_pid(phydev);

Expand Down