]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: fix Transmit Underflow error
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Sun, 10 Apr 2011 23:16:46 +0000 (23:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2011 19:55:48 +0000 (12:55 -0700)
commit8fa0d5e933c20fe9b213a14a907d4920b83522ba
tree9f09417e2ea3c623250b9598b7ff8752654acbd4
parente32fd4b1e10029f567765e9e51ad936b5a4f254d
stmmac: fix Transmit Underflow error

On some old MAC chips without COE sometime the
Transmit Underflow error is issued.

The driver aborted all the transmission process
and initialized it from scratch.
This breaks the network activity as raised by Nachiketa
on a SPEAr board.

The patch is to fix this rare underflow event.
The driver will only clear the interrupt and the Tx
DMA will go out the Suspend state as soon as the
descriptor is fetched again.
The driver will continue to bump-up the DMA FIFO threshold
that, indeed, helped somebody to prevent this kind of error
in the past as well.

Reported-by: Nachiketa Prachanda <nprachanda@ncomputing.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/stmmac/stmmac_main.c