Messages in this thread | | | Date | Wed, 9 Mar 2022 16:57:02 +0100 | From | Andrew Lunn <> | Subject | Re: net: asix: best way to handle orphan PHYs |
| |
> EEPROM provides information, which PHY address should be used. If > address is 0x10, it is internal PHY. Different parts of ASIX driver use > this logic.
O.K, so the solution should be generic, unless there are devices with bad EEPROM content.
> Ok, so if phy_suspend() is the preffered way, I need to get phydev > without attaching it. Correct? Do we already have some helpers to do it?
mdiobus_get_phy() will get you the phydev is you know the bus and the address.
Andrew
| |