summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/synopsys
diff options
context:
space:
mode:
authorNiklas Cassel <niklas.cassel@axis.com>2016-10-18 09:20:55 +0200
committerDavid S. Miller <davem@davemloft.net>2016-10-18 10:29:17 -0400
commit1826277802d83b47d77e6a3e876aec07777aa271 (patch)
tree897e67cb076b8b8753d03d1a309dbf8c91363918 /drivers/net/ethernet/synopsys
parent902943c0d759a090490b2bf6c91a49395b353653 (diff)
downloadlinux-1826277802d83b47d77e6a3e876aec07777aa271.tar.bz2
dwc_eth_qos: enable flow control by default
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>
Diffstat (limited to 'drivers/net/ethernet/synopsys')
-rw-r--r--drivers/net/ethernet/synopsys/dwc_eth_qos.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/synopsys/dwc_eth_qos.c b/drivers/net/ethernet/synopsys/dwc_eth_qos.c
index d775729648ef..5eedac495077 100644
--- a/drivers/net/ethernet/synopsys/dwc_eth_qos.c
+++ b/drivers/net/ethernet/synopsys/dwc_eth_qos.c
@@ -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;
}