
6 Jun
2014
6 Jun
'14
12:46 a.m.
On Wed, May 21, 2014 at 01:08:52PM -0400, Cormier, Jonathan wrote:
From: Cormier, Jonathan jcormier@criticallink.com
get_phy_id returns -EIO when it can't read from a phy at a given addr. This would cause create_phy_by_mask to return prematurely before it had tested the other addresses in the provided mask.
Example usage: Replace phydev = phy_connect(bus, phy_addr, dev, phy_if) with phydev = phy_find_by_mask(bus, phy_mask, phy_if) if (phydev) phy_connect_dev(phydev, dev);
Signed-off-by: Cormier, Jonathan jcormier@criticallink.com Cc: Joe Hershberger joe.hershberger@gmail.com
Applied to u-boot/master, thanks!
--
Tom