diff options
author | Tom Rini <trini@ti.com> | 2013-11-25 10:42:19 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-11-25 10:42:19 -0500 |
commit | 1a1326d2da9b2904bc90fb2990f829cb1ecef312 (patch) | |
tree | 79b47ce3f6bbc48974d305eedebd0e473dc9a33d /drivers/net/phy/phy.c | |
parent | faca8ff55f4a2cf45fb906cc37f44601149fc00e (diff) | |
parent | 2287286be4e268d3d4ec3c0347bf31479dbd1f05 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'drivers/net/phy/phy.c')
-rw-r--r-- | drivers/net/phy/phy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 62925bb2863..c691fbbbc61 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -275,13 +275,14 @@ int genphy_parse_link(struct phy_device *phydev) int mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMSR); /* We're using autonegotiation */ - if (mii_reg & BMSR_ANEGCAPABLE) { + if (phydev->supported & SUPPORTED_Autoneg) { u32 lpa = 0; int gblpa = 0; u32 estatus = 0; /* Check for gigabit capability */ - if (mii_reg & BMSR_ERCAP) { + if (phydev->supported & (SUPPORTED_1000baseT_Full | + SUPPORTED_1000baseT_Half)) { /* We want a list of states supported by * both PHYs in the link */ |