[U-Boot] phy: fix create_phy_by_mask for when its given an actual search mask
Tom Rini
trini at ti.com
Fri Jun 6 00:46:40 CEST 2014
On Wed, May 21, 2014 at 01:08:52PM -0400, Cormier, Jonathan wrote:
> From: Cormier, Jonathan <jcormier at 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 at criticallink.com>
> Cc: Joe Hershberger <joe.hershberger at gmail.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140605/a3598d35/attachment.pgp>
More information about the U-Boot
mailing list