]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3872b869dac7c055b5b18c52cf01e1f4fa65676f
treec0684b04a86f72d204c8e4e6f28b07ea410e2243
parent2c001603f4f3f12db28a1d8c8c17b81c7e1490f8
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