net: dwc_eth_qos: Prevent DMA from writing updated RX DMA descriptor
authorMarek Vasut <marex@denx.de>
Mon, 23 Mar 2020 01:11:46 +0000 (02:11 +0100)
committermarex <marex@desktop.lan>
Fri, 1 May 2020 10:35:21 +0000 (12:35 +0200)
commit24891dd8d40d71c034023d2a037c97df1714393b
tree9902469951873d9d0455f4e26e1f63dbe872cd91
parenta83ca0c280dd41dda576d6a8f15a8534a84b782c
net: dwc_eth_qos: Prevent DMA from writing updated RX DMA descriptor

The DMA may attempt to write a DMA descriptor in the ring while it is
being updated. By writing the DMA descriptor buffer address to 0, it
is assured the DMA will not use such a buffer and the buffer can be
updated without any interference.

Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
Cc: Ramon Fried <rfried.dev@gmail.com>
Cc: Stephen Warren <swarren@nvidia.com>
drivers/net/dwc_eth_qos.c