On Wed, Sep 02, 2020 at 02:03:27PM -0700, Florian Fainelli wrote: > Registering our slave MDIO bus outside of the OF infrastructure is > necessary in order to avoid creating double references of the same > Device Tree nodes, however it is not sufficient to guarantee that the > MDIO bus diversion is used because of_phy_connect() will still resolve > to a valid PHY phandle and it will connect to the PHY using its parent > MDIO bus which is still the SF2 master MDIO bus. > > Ensure that of_phy_connect() does not suceed by removing any phandle > reference for the PHY we need to divert. This forces the DSA code to use > the DSA slave_mii_bus that we register and ensures the MDIO diversion is > being used.
Hi Florian Sorry, i don't get this explanation. Can you point me towards a device tree i can look at to maybe understand what is going on. Andrew