]> git.sur5r.net Git - u-boot/commit
net/designware: ensure device private data is DMA aligned.
authorIan Campbell <ijc@hellion.org.uk>
Thu, 8 May 2014 21:26:32 +0000 (22:26 +0100)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 25 May 2014 15:23:12 +0000 (17:23 +0200)
commit1c848a258600490f6964597b92b69a107af141d6
treed976eec07a0404f5e8c9b36d681d810e275ad2a9
parent50827a5991bb345319bd0ce76f5e2402fac0c391
net/designware: ensure device private data is DMA aligned.

struct dw_eth_dev contains fields which are accessed via DMA, so make sure it
is aligned to a dma boundary. Without this I see:
    ERROR: v7_dcache_inval_range - start address is not aligned - 0x7fb677e0

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Reviewed-by: Alexey Brodkin <abrodkin@synopsys.com>
Acked-by: Marek Vasut <marex@denx.de>
drivers/net/designware.c