]> git.baikalelectronics.ru Git - uboot.git/commit
net: phy: micrel: Try default PHY ofnode first
authorMarek Vasut <marex@denx.de>
Sat, 16 Jan 2021 23:16:16 +0000 (00:16 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 27 Jan 2021 15:47:54 +0000 (10:47 -0500)
commit5bd9e4659f642af87afcba53e90a775a8964b5b7
tree69e5bf8f47272b2f365933033c79d75e1bd16502
parent9a6867e42a91f7a8625818f62449cebc86680a92
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>
drivers/net/phy/micrel_ksz90x1.c