Messages in this thread | | | Date | Fri, 23 Oct 2020 22:10:46 +0200 | From | Andrew Lunn <> | Subject | Re: [PATCH] RFC: net: phy: of phys probe/reset issue |
| |
> Yes there is: have your Ethernet PHY compatible string be of the form > "ethernetAAAA.BBBB" and then there is no need for such hacking. > of_get_phy_id() will parse that compatible and that will trigger > of_mdiobus_register_phy() to take the phy_device_create() path.
Yep. That does seem like the cleanest way to do this. Let the PHY driver deal with the resources it needs.
Andrew
| |