[U-Boot] [PATCH] net/designware: align DMA buffer descriptors to D$ line
Alexey Brodkin
Alexey.Brodkin at synopsys.com
Fri Mar 21 13:16:57 CET 2014
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 at synopsys.com>
Cc: Vineet Gupta <vgupta at synopsys.com>
Cc: Joe Hershberger <joe.hershberger at ni.com>
Cc: Vipin Kumar <vipin.kumar at st.com>
Cc: Stefan Roese <sr at denx.de>
Cc: Shiraz Hashim <shiraz.hashim at st.com>
Cc: Albert ARIBAUD <albert.u.boot at aribaud.net>
Cc: Amit Virdi <amit.virdi at st.com>
Cc: Sonic Zhang <sonic.zhang at analog.com>
---
drivers/net/designware.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/designware.h b/drivers/net/designware.h
index afeacce..382b0c7 100644
--- a/drivers/net/designware.h
+++ b/drivers/net/designware.h
@@ -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
--
1.8.5.3
More information about the U-Boot
mailing list