> Hm, it's not really a "external mode". But let's try one more time. > The idea is that if an external mdio-bus (from the SoC) has already > registered the PHY 0x0 - 0x4 from the QCA8337, the qca8k should not > expose the same PHYs as it's own mdio-bus because then the PHYs end > up being registered twice.
Hi, yes, I understand this bit. What I was talking about was that the MDIO addresses of internal PHYs are 0 to 4, it does not matter if you access them via switch or directly. But the current code for direct access is using addresses 1 to 5, which does not work at all. It should also substract 1 from the port number. Marek