commit | 02505e995933c6fe5fd52f7ec9b6041a249d4e8f | [log] [tgz] |
---|---|---|
author | Hannes Schmelzer <hannes.schmelzer@br-automation.com> | Fri Mar 29 09:54:05 2019 +0100 |
committer | Tom Rini <trini@konsulko.com> | Sun Apr 07 20:31:16 2019 -0400 |
tree | df64dfbfcab1f6be261797aa6b117c7333d921cf | |
parent | 56a3161c4fd841cc3936550bbe713f30c73a05d8 [diff] |
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>