[U-Boot] [PATCH 3/3] net/designware: align cache invalidation on rx

Ian Campbell ijc at hellion.org.uk
Sat Apr 19 15:52:22 CEST 2014


Signed-off-by: Ian Campbell <ijc at hellion.org.uk>
---
 drivers/net/designware.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index 7d14cec..30446d3 100644
--- a/drivers/net/designware.c
+++ b/drivers/net/designware.c
@@ -354,7 +354,7 @@ static int dw_eth_recv(struct eth_device *dev)
 		/* Invalidate received data */
 		invalidate_dcache_range((unsigned long)desc_p->dmamac_addr,
 					(unsigned long)desc_p->dmamac_addr +
-					length);
+					roundup(length, ARCH_DMA_MINALIGN));
 
 		NetReceive(desc_p->dmamac_addr, length);
 
-- 
1.9.0



More information about the U-Boot mailing list