OSDN Git Service

net: mediatek: add next data pointer coherency protection
authorJohn Crispin <john@phrozen.org>
Fri, 10 Jun 2016 11:28:02 +0000 (13:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2016 06:29:29 +0000 (23:29 -0700)
commit6675086d04e7c0748cd5884f7c8611b5f0836250
treea4374f888e8773e7961888e798eb558eb9fb49ca
parent94321a9fc9f5b6c6e949cc7c69741538f556ab74
net: mediatek: add next data pointer coherency protection

The QDMA engine can fail to update the register pointing to the next TX
descriptor if this bit does not get set in the QDMA configuration register.
Not setting this bit can result in invalid values inside the TX rings
registers which will causes TX stalls.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h