Re: [PATCH net-next v2 4/4] net: mdio: mdio-bcm-unimac: Add Clause 45 support
From: Nicolai Buchwitz
Date: Tue Nov 17 2026 - 07:37:09 EST
On 16.11.2026 22:34, Florian Fainelli wrote:
Add Clause 45 read/write support to the UniMAC MDIO bus controller driver
by implementing the read_c45/write_c45 bus callbacks. Each access performs
the two-step C45 sequence (ADDR cycle followed by a READ/WRITE cycle) under
the bus lock and switches MDIO_CFG between C22 and C45 mode as needed;
MDIO_CFG is only written when the mode actually changes.
Also skip the BMSR workaround read in unimac_mdio_reset() for children
compatible with "ethernet-phy-ieee802.3-c45", since such PHYs are not
expected to respond to C22 accesses.
Note that providing read_c45/write_c45 also makes the MDIO core scan for
C45 PHYs at registration time, on addresses that are not masked and do not
already have a C22 device.
Signed-off-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
Co-developed-by: Carlos Soto <carlos.soto@xxxxxxxxxxxx>
Signed-off-by: Carlos Soto <carlos.soto@xxxxxxxxxxxx>
Co-developed-by: Justin Chen <justin.chen@xxxxxxxxxxxx>
Signed-off-by: Justin Chen <justin.chen@xxxxxxxxxxxx>
[...]
Reviewed-by: Nicolai Buchwitz <nb@xxxxxxxxxxx>
Thanks,
Nicolai