dwc_eth_qos: enable flow control by default
authorNiklas Cassel <niklas.cassel@axis.com>
Tue, 18 Oct 2016 07:20:55 +0000 (09:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Oct 2016 14:29:17 +0000 (10:29 -0400)
Allow autoneg to enable flow control by default.
The behavior when autoneg is off has not changed.

Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
Signed-off-by: Jesper Nilsson <jespern@axis.com>
Acked-by: Lars Persson <larper@axis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/synopsys/dwc_eth_qos.c

index d775729648eff1b86ecfb7d722f1038e921c69a4..5eedac49507789788392d8d570572e1dc445afeb 100644 (file)
@@ -988,6 +988,7 @@ static int dwceqos_mii_probe(struct net_device *ndev)
        lp->link    = 0;
        lp->speed   = 0;
        lp->duplex  = DUPLEX_UNKNOWN;
+       lp->flowcontrol.autoneg = AUTONEG_ENABLE;
 
        return 0;
 }