Skip to content
Snippets Groups Projects
Commit 6f9b9372 authored by Michal Simek's avatar Michal Simek
Browse files

net: axi_emac: Check if phy was correctly detected


As tsec and fm drivers checking phydev->link
ensure that u-boot don't try access device if link is not ready.

Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 4ed4aa20
No related branches found
No related tags found
No related merge requests found
...@@ -261,6 +261,10 @@ static int setup_phy(struct eth_device *dev) ...@@ -261,6 +261,10 @@ static int setup_phy(struct eth_device *dev)
phydev->dev->name); phydev->dev->name);
return 0; return 0;
} }
if (!phydev->link) {
printf("%s: No link.\n", phydev->dev->name);
return 0;
}
switch (phydev->speed) { switch (phydev->speed) {
case 1000: case 1000:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment