> The trick here is that priv->bus is not the internal > bus instead it's set to the SoC's (external) mii bus in qca8k_sw_probe()). > So this isn't a slave bus! And as stated in the qca8k, the the external > and internal PHY bus are not mapped 1:1. > > >From what I can tell from the datasheet, the QCA8337N does have > dedicated MDIO master control register which is what is > needed here.
Ah, O.K, i was missing that bit. So yes, export an MDIO bus to Linux, as the mv88e6xxx does. Andrew