diff options
author | Cormier, Jonathan <jcormier@criticallink.com> | 2014-05-21 13:08:52 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-05 14:44:56 -0400 |
commit | 08be2836df0b07aac65fea583b762335569fd47a (patch) | |
tree | 6b78dc1045b649ed3080b143c466a107bde9e578 /include/iomux.h | |
parent | 64375014c499528d9df5ee37f78844823a9d21f2 (diff) | |
download | u-boot-imx-08be2836df0b07aac65fea583b762335569fd47a.zip u-boot-imx-08be2836df0b07aac65fea583b762335569fd47a.tar.gz u-boot-imx-08be2836df0b07aac65fea583b762335569fd47a.tar.bz2 |
phy: fix create_phy_by_mask for when its given an actual search mask
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>
Diffstat (limited to 'include/iomux.h')
0 files changed, 0 insertions, 0 deletions