From: Giuseppe CAVALLARO Date: Thu, 12 May 2011 20:28:05 +0000 (+0000) Subject: stmmac: fix autoneg in set_pauseparam X-Git-Tag: v3.0~749^2~83 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64c7f304b81a9a92dc7046c97a10427a5997dc07;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/stmmac/stmmac_ethtool.c b/drivers/net/stmmac/stmmac_ethtool.c index 9c05cf0..ae5213a 100644 --- a/drivers/net/stmmac/stmmac_ethtool.c +++ b/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))