浏览代码

stmmac: fix autoneg in set_pauseparam

This patch fixes a bug in the set_pauseparam
function that didn't well manage the ANE
field and returned broken values when use
ethtool -A|-a.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Giuseppe CAVALLARO 14 年之前
父节点
当前提交
64c7f304b8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/net/stmmac/stmmac_ethtool.c

+ 1 - 0
drivers/net/stmmac/stmmac_ethtool.c

@@ -234,6 +234,7 @@ stmmac_set_pauseparam(struct net_device *netdev,
 		new_pause |= FLOW_TX;
 
 	priv->flow_ctrl = new_pause;
+	phy->autoneg = pause->autoneg;
 
 	if (phy->autoneg) {
 		if (netif_running(netdev))