summaryrefslogtreecommitdiff
path: root/drivers/net/cris
diff options
context:
space:
mode:
authorNiklas Cassel <niklas.cassel@axis.com>2018-02-27 00:47:08 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-27 22:28:10 +0300
commita6b25da5e7ba212af5826a662e6a035a79bffabd (patch)
tree77db9952a2c424b51902d829666a3c9638f1d8eb /drivers/net/cris
parent95eb930a40a0973f9b984d87a4986bb81f897ede (diff)
downloadlinux-a6b25da5e7ba212af5826a662e6a035a79bffabd.tar.xz
net: stmmac: ensure that the device has released ownership before reading data
According to Documentation/memory-barriers.txt, we need to use a dma_rmb() after reading the status/own bit, to ensure that all descriptor fields are read after reading the own bit. This way, we ensure that the DMA engine is done with the DMA descriptor before we read the other descriptor fields, e.g. reading the tx hardware timestamp (if PTP is enabled). Signed-off-by: Niklas Cassel <niklas.cassel@axis.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cris')
0 files changed, 0 insertions, 0 deletions