mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-06 11:30:47 +09:00
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: Vitaly Andrianov <vitalya@ti.com> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
This commit is contained in:
parent
496191c7ab
commit
adc9a79f3f
@ -648,7 +648,7 @@ static struct phy_device *get_phy_device_by_mask(struct mii_dev *bus,
|
|||||||
if (phydev)
|
if (phydev)
|
||||||
return 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);
|
return phy_device_create(bus, ffs(phy_mask) - 1, 0xffffffff, interface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user