Re: [PATCH] net: mdio: fix duplicate registrations for phy with c45 in __of_mdiobus_register()

From: Andrew Lunn
Date: Sat Jun 10 2023 - 13:10:59 EST


On Sun, Jun 11, 2023 at 12:13:08AM +0800, Jianhui Zhao wrote:
> Maybe mdiobus_scan_bus_c45() is called in __mdiobus_register().
> Thus it should skip already registered PHYs later.

Please could you expand on your commit message. I don't see what is
going wrong here. What does your device tree look like? Do you have a
PHY which responds to both C22 and C45?

Thanks
Andrew