stmmac: fix memory barriers
authorPavel Machek <pavel@ucw.cz>
Sun, 18 Dec 2016 20:38:12 +0000 (21:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Dec 2016 16:05:02 +0000 (11:05 -0500)
commitad688cdbb076833ba17fc65591cd0fe01900a5cf
tree0b36819266511a2dcacef21c8f42000ed88afaa0
parent162809dfc2bfb31eb54dc67733bcdab0f2d1534d
stmmac: fix memory barriers

Fix up memory barriers in stmmac driver. They are meant to protect
against DMA engine, so smp_ variants are certainly wrong, and dma_
variants are preferable.

Signed-off-by: Pavel Machek <pavel@denx.de>
Tested-by: Niklas Cassel <niklas.cassel@axis.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c
drivers/net/ethernet/stmicro/stmmac/enh_desc.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c