]> git.ipfire.org Git - thirdparty/u-boot.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)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 4 Jun 2019 10:44:49 +0000 (12:44 +0200)
commitf89b5cc3efc944679ed10ef8c640cb8e2ce65dcc
tree784341756a958943a6b86079c16714be13d3b3cf
parentd895ac5e94815d4b45dcf09d4752c5c2334a51db
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>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/phy/phy.c