On 2/26/25 9:51 AM, Paul Barker wrote:
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!
Can you please fill in the RBs to patches which are still missing them,
so I am not applying my own stuff without RBs ?
(and yes, there will be a follow up series which deduplicates the ops,
that is not forgotten)