Re: [PATCH net-next v2 07/10] net: phy: add generic helpers for direct C45 MMD access
From: Andrew Lunn
Date: Wed May 27 2026 - 22:34:47 EST
On Wed, May 27, 2026 at 12:51:52AM +0300, Ciprian Regus via B4 Relay wrote:
> From: Ciprian Regus <ciprian.regus@xxxxxxxxxx>
>
> Some PHYs support direct C45 register access but not C22 indirect MMD
> access (registers 0xD and 0xE). When discovered via C22, phylib routes
> MMD access through the indirect path, which won't work on these
> devices.
>
> Add genphy_read_mmd_c45() and genphy_write_mmd_c45() as read_mmd/
> write_mmd callbacks that bypass the C22 indirect path and use the bus
> C45 accessors directly.
>
> Signed-off-by: Ciprian Regus <ciprian.regus@xxxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew