Re: [PATCH] RFC: net: phy: of phys probe/reset issue

From: Andrew Lunn
Date: Fri Oct 23 2020 - 16:10:59 EST


> 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