> You are correct is_c45 should not be derived from the type of PHY like > it is being done here. I have changed this code and now we are getting this > information from the IMP(Integrated Management Processor) which handles > the NIC commands and also maintains Ethernet specific configuration.
Florian With c22, registering the MDIO bus is enough to cause all c22 addresses to be probed and the PHYs found. If you are not using device tree, you can then use phy_find_first() to get the first phy on the bus. As far as i remember, this does not work for c45. mdiobus_scan() is only looking for c22 PHYs. Maybe we should be making mdiobus_scan() look first for a c45 and then try c22? Andrew