diff options
author | Vince Bridgers <vbridger@opensource.altera.com> | 2015-04-15 19:17:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-16 20:58:42 +0300 |
commit | f88203a229cca0b3634738b7dae47419d1da6dc8 (patch) | |
tree | d9bc05f136558819d3ca4ca67f2ef74798cdd743 /drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c | |
parent | 545d655ebbea65986cb762905b81bff54f42eb6d (diff) | |
download | linux-f88203a229cca0b3634738b7dae47419d1da6dc8.tar.xz |
stmmac: Configure Flow Control to work correctly based on rxfifo size
Configure flow control correctly, and based on the receive fifo size read
as a property from the devicetree since the Synopsys stmmac fifo sizes are
configurable based on a particular chip's implementation. This patch maintains
the previous incorrect behavior unless the receive fifo size is found in the
devicetree.
Signed-off-by: Vince Bridgers <vbridger@opensource.altera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c index 7d1dce9e7ffc..9d0971c1c2ee 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c @@ -72,7 +72,7 @@ static int dwmac100_dma_init(void __iomem *ioaddr, int pbl, int fb, int mb, * control register. */ static void dwmac100_dma_operation_mode(void __iomem *ioaddr, int txmode, - int rxmode) + int rxmode, int rxfifosz) { u32 csr6 = readl(ioaddr + DMA_CONTROL); |