On 22/02/2025 20:33, Marek Vasut wrote: > Get rid of global bb_miiphy_buses[] which does not fit well with U-Boot > DM in favor of usual per-ethernet-MAC-driver-instance MDIO bus accessors. > > Introduce the ability to allocate struct bb_miiphy_bus {} and make it wrap > struct mii_dev {}, so the struct mii_dev can be passed into MDIO bus access > infrastructure as usual. When the MDIO bus access infrastructure attempts to > access the MDIO bus and invokes any of the bbmiiphy accessors, those accessors > are passed the structu mii_dev {}, but can also access struct bb_miiphy_bus > using plain container_of() . > > Clean up the drivers and update them to match.
I think this series looks ready to merge so I'll start rebasing my RZ/G2L Ethernet patches on it. Thanks Marek! -- Paul Barker
OpenPGP_0x27F4B3459F002257.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature