commit | 7bbc25b0b6c7c43fb7c8adb86e11b574268c8942 | [log] [tgz] |
---|---|---|
author | Marek Vasut <marex@denx.de> | Sun Jan 17 00:16:16 2021 +0100 |
committer | Tom Rini <trini@konsulko.com> | Wed Jan 27 10:47:54 2021 -0500 |
tree | 69e5bf8f47272b2f365933033c79d75e1bd16502 | |
parent | 0c97b7f740c405dc34dcf609563fc85f37ef5c7e [diff] |
net: phy: micrel: Try default PHY ofnode first The phydev structure has a PHY OF node pointer in it, use that OF node first when looking up PHY OF node properties, since that is likely the correct PHY OF node pointer. If the pointer is not valid, which is the case e.g. on legacy DTs, fall back to parsing MAC ethernet-phy subnode. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Ramon Fried <rfried.dev@gmail.com>