Home
last modified time | relevance | path

Searched hist:"08 be2836df0b07aac65fea583b762335569fd47a" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/net/phy/
H A Dphy.c08be2836df0b07aac65fea583b762335569fd47a Wed May 21 17:08:52 UTC 2014 Cormier, Jonathan <jcormier@criticallink.com> 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>