From: Alexey Brodkin Date: Fri, 21 Mar 2014 12:16:57 +0000 (+0400) Subject: net/designware: align DMA buffer descriptors to D$ line X-Git-Tag: v2014.04-rc3~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a7b26dbb49139535992c6d4c282bcf258b3f7fa3;p=u-boot 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 Cc: Vineet Gupta Cc: Joe Hershberger Cc: Vipin Kumar Cc: Stefan Roese Cc: Shiraz Hashim Cc: Albert ARIBAUD Cc: Amit Virdi Cc: Sonic Zhang --- diff --git a/drivers/net/designware.h b/drivers/net/designware.h index afeaccec19..382b0c7f0a 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