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

Commit b8fad02a authored by Alok Chauhan's avatar Alok Chauhan
Browse files

msm: emac: Allow to program 1GB speed via ethtool



Currently ethtool don't allow to program 1GB link
speed. Apart from that it does not retain existing
speed if disabled autonegotiation.

Change-Id: I00e35af5738e1e30227971bcda1629183be00ebf
Signed-off-by: default avatarAlok Chauhan <alokc@codeaurora.org>
parent 50239ba4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -319,6 +319,9 @@ static int emac_hw_setup_phy_link(struct emac_adapter *adpt,
		case EMAC_LINK_SPEED_100_FULL:
			bmcr |= BMCR_SPEED100 | BMCR_FULLDPLX;
			break;
		case EMAC_LINK_SPEED_1GB_FULL:
			bmcr |= BMCR_SPEED1000 | BMCR_FULLDPLX;
			break;
		default:
			return -EINVAL;
		}