]> git.baikalelectronics.ru Git - uboot.git/commit
net: phy: implement fallback mechanism for negative phy adresses
authorHannes Schmelzer <hannes.schmelzer@br-automation.com>
Fri, 29 Mar 2019 08:54:05 +0000 (09:54 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 8 Apr 2019 00:31:16 +0000 (20:31 -0400)
commit24721c4b64ea442af659491296ce43a0804c1d1f
treedf64dfbfcab1f6be261797aa6b117c7333d921cf
parent16586b23c675fa2dff392ca1ff56ce177f7c4434
net: phy: implement fallback mechanism for negative phy adresses

Negative phy-addresses can occour if the caller function was not able to
determine a valid phy address (from device-tree for example). In this
case we catch this here and search for ANY phy device on the given mdio-
bus.

Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Lukasz Majewski <lukma@denx.de>
drivers/net/phy/phy.c