stmmac: add memory barriers at appropriate places
authorShiraz Hashim <shiraz.hashim@st.com>
Sun, 17 Jul 2011 20:54:08 +0000 (20:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jul 2011 17:47:24 +0000 (10:47 -0700)
commiteb0dc4bb2e22c04964d6e9545e86f629f117108b
treec0684b04a86f72d204c8e4e6f28b07ea410e2243
parentbab632d69ee48a106e779b60cc01adfe80a72807
stmmac: add memory barriers at appropriate places

This patch, provided by ST SPEAr developers,
has fixed a problem raised on ARM CA9 where
happened that the dma_transmission was enabled before
the dma descriptors were properly filled. To guarantee this
data memory barriers have been explicity used in the driver.

Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/stmmac/stmmac_main.c