net/designware: align DMA buffer descriptors to D$ line
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Fri, 21 Mar 2014 12:16:57 +0000 (16:16 +0400)
committerTom Rini <trini@ti.com>
Fri, 28 Mar 2014 19:06:30 +0000 (15:06 -0400)
It's important to have ability to flush/invalidate each DMA buffer descriptor
individually to prevent incoherency of adjacent BDs.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Vipin Kumar <vipin.kumar@st.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Shiraz Hashim <shiraz.hashim@st.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Amit Virdi <amit.virdi@st.com>
Cc: Sonic Zhang <sonic.zhang@analog.com>
drivers/net/designware.h

index afeaccec19a4858ecc61d26834fb2d2478656ef5..382b0c7f0a66c2a9dd4dab562a13f16f780e2bda 100644 (file)
@@ -110,7 +110,7 @@ struct dmamacdescr {
        u32 dmamac_cntl;
        void *dmamac_addr;
        struct dmamacdescr *dmamac_next;
-} __aligned(16);
+} __aligned(ARCH_DMA_MINALIGN);
 
 /*
  * txrx_status definitions