Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f671b04 authored by Suraj Jaiswal's avatar Suraj Jaiswal
Browse files

net: stmmac: Fixed ethool speed issue



Don't modify emac supported capabilities during
early ethernet boot up. Only update advertise values
otherwise speed can't be changed using ethtool.

Change-Id: Id25ddd17a81fefd4d17116f0ff7237272f2607c0
Signed-off-by: default avatarSuraj Jaiswal <jsuraj@codeaurora.org>
parent c8980a40
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -1028,15 +1028,9 @@ static int stmmac_init_phy(struct net_device *dev)
		phydev->speed = SPEED_100;
		phydev->duplex = DUPLEX_FULL;

		phydev->supported =
			SUPPORTED_100baseT_Full | SUPPORTED_TP | SUPPORTED_MII |
			SUPPORTED_10baseT_Full;
		phydev->supported &= ~SUPPORTED_Autoneg;

		phydev->advertising = phydev->supported;
		phydev->advertising &= ~ADVERTISED_Autoneg;
		phydev->advertising &= ~(SUPPORTED_1000baseT_Full);

		phy_set_max_speed(phydev, SPEED_100);
		pr_info(" qcom-ethqos: %s early eth setting successful\n",
			__func__);