]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: Configure Flow Control to work correctly based on rxfifo size
authorVince Bridgers <vbridger@opensource.altera.com>
Wed, 15 Apr 2015 16:17:42 +0000 (11:17 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Apr 2015 17:58:42 +0000 (13:58 -0400)
commitb0a9d6686ff71b190dc4eb5cdb046b1a9e4924c1
treed9bc05f136558819d3ca4ca67f2ef74798cdd743
parent41d397d5f0ad9288c63c7fb47d0fa621d2362614
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>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c