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

Commit 06db494a authored by Suraj Jaiswal's avatar Suraj Jaiswal
Browse files

net: stmmac: Ethtool half duplex not supported



Half duplex is not supported by the driver.
Return error for Half duplex setting.

Change-Id: I16bc99f66d52f236412b1513964e37f266d7c649
Signed-off-by: default avatarSuraj Jaiswal <jsuraj@codeaurora.org>
parent c8980a40
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -402,9 +402,11 @@ stmmac_ethtool_set_link_ksettings(struct net_device *dev,

		return 0;
	}

	/* Half duplex is not supported */
	if (cmd->base.duplex != DUPLEX_FULL)
		rc = -EINVAL;
	else
		rc = phy_ethtool_ksettings_set(phy, cmd);

	return rc;
}