Browse Source

net: phy: marvell: Show complete link partner advertising

Give back all modes advertised by the link partner. This change brings
the marvell phy driver in line with all other phy drivers.

Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Thomas Bogendoerfer 8 years ago
parent
commit
a1fa1a00b3
1 changed files with 0 additions and 7 deletions
  1. 0 7
      drivers/net/phy/marvell.c

+ 0 - 7
drivers/net/phy/marvell.c

@@ -1139,7 +1139,6 @@ static int marvell_read_status_page_an(struct phy_device *phydev,
 	int status;
 	int status;
 	int lpa;
 	int lpa;
 	int lpagb;
 	int lpagb;
-	int adv;
 
 
 	status = phy_read(phydev, MII_M1011_PHY_STATUS);
 	status = phy_read(phydev, MII_M1011_PHY_STATUS);
 	if (status < 0)
 	if (status < 0)
@@ -1153,12 +1152,6 @@ static int marvell_read_status_page_an(struct phy_device *phydev,
 	if (lpagb < 0)
 	if (lpagb < 0)
 		return lpagb;
 		return lpagb;
 
 
-	adv = phy_read(phydev, MII_ADVERTISE);
-	if (adv < 0)
-		return adv;
-
-	lpa &= adv;
-
 	if (status & MII_M1011_PHY_STATUS_FULLDUPLEX)
 	if (status & MII_M1011_PHY_STATUS_FULLDUPLEX)
 		phydev->duplex = DUPLEX_FULL;
 		phydev->duplex = DUPLEX_FULL;
 	else
 	else