]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: update rx tail pointer register to fix rx dma hang issue.
authorBiao Huang <biao.huang@mediatek.com>
Fri, 24 May 2019 06:26:07 +0000 (14:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 May 2019 18:02:31 +0000 (11:02 -0700)
commitc637b6a15e405726ca6dd779d178cf2a4373b7b4
tree455c9ffde4eb9bb8be47c2698a33b4bdd6601f94
parent8a97c7dbaa875d6de01b3fefbd9b966318ec4337
net: stmmac: update rx tail pointer register to fix rx dma hang issue.

Currently we will not update the receive descriptor tail pointer in
stmmac_rx_refill. Rx dma will think no available descriptors and stop
once received packets exceed DMA_RX_SIZE, so that the rx only test will fail.

Update the receive tail pointer in stmmac_rx_refill to add more descriptors
to the rx channel, so packets can be received continually

Fixes: 6c5e891fdbd5 ("net: stmmac: adding multiple buffers for rx")
Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c