drivers: net: phy: micrel: Try to get phy node from phy-handle
authorNaresh Kumar Ravulapalli <nareshkumar.ravulapalli@altera.com>
Tue, 1 Jul 2025 04:49:23 +0000 (21:49 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 10 Jul 2025 14:40:45 +0000 (08:40 -0600)
commitacf964c4758e2a60656a385f27dea0250fbbe7e6
tree59686f14f6f7c8885e95fd5b44b609ca6a7704ae
parent344e1798059ba65769272be3145736685bb25a7e
drivers: net: phy: micrel: Try to get phy node from phy-handle

If phy node isn't found in ethernet-phy subnode, try to get it from
phy-handle. And when this fails, only then use Ethernet node. This
fix results in getting correct phy handle properties for the
phy node if defined.

Signed-off-by: Naresh Kumar Ravulapalli <nareshkumar.ravulapalli@altera.com>
drivers/net/phy/micrel_ksz90x1.c