Skip to content
Snippets Groups Projects
Commit adc9a79f authored by Khoronzhuk, Ivan's avatar Khoronzhuk, Ivan Committed by Tom Rini
Browse files

net: phy: print a number of phy that is not found


In case when several Ethernet ports are supported it's
convenient to see the number of phy that is not found.

Acked-by: default avatarVitaly Andrianov <vitalya@ti.com>
Signed-off-by: default avatarIvan Khoronzhuk <ivan.khoronzhuk@ti.com>
parent 496191c7
No related branches found
No related tags found
No related merge requests found
......@@ -648,7 +648,7 @@ static struct phy_device *get_phy_device_by_mask(struct mii_dev *bus,
if (phydev)
return phydev;
}
printf("Phy not found\n");
printf("Phy %d not found\n", ffs(phy_mask) - 1);
return phy_device_create(bus, ffs(phy_mask) - 1, 0xffffffff, interface);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment