Re: [PATCH 1/8] dt-bindings: net: Add MDIO demultiplexer

From: Andrew Lunn

Date: Tue Nov 17 2026 - 12:02:23 EST


On Wed, Nov 18, 2026 at 12:18:12AM +0800, Jisheng Zhang wrote:
> On Tue, Nov 17, 2026 at 05:20:39PM +0100, Andrew Lunn wrote:
> > > > Each transaction?
> > > >
> > > > Are you proposing to use both MDIO bus master? Why? To the outside
> > > > world, it is one MDIO bus, so you only need one active MDIO bus
> > >
> > > Yep, both MDIO bus masters. I wanted to let each MAC uses its own
> > > MDIO rather than disturbe another MAC for dual MACs case.
> >
> > How does this actually work? Each bus master sees each PHY. So one
>
> This could work since the demux serializes two masters' access + only
> point to one phy phandle in one mac's DT node.

And it all blows up when you don't use DT, or the MDIO node is missing
and of_mdiobus_register() falls back to mdiobus_register() which scans
all the devices on the bus.

> Yep, I will switch to one MDIO bus solution by coping with the selector
> in the sl2610 stmmac glue driver.

Good.

Andrew