Commit a7b26dbb49139535992c6d4c282bcf258b3f7fa3

Authored by Alexey Brodkin
Committed by Tom Rini
1 parent 028d65fb92

net/designware: align DMA buffer descriptors to D$ line

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/net/designware.h
... ... @@ -110,7 +110,7 @@
110 110 u32 dmamac_cntl;
111 111 void *dmamac_addr;
112 112 struct dmamacdescr *dmamac_next;
113   -} __aligned(16);
  113 +} __aligned(ARCH_DMA_MINALIGN);
114 114  
115 115 /*
116 116 * txrx_status definitions