From: Rabeeh Khoury Date: Tue, 19 Jun 2018 18:36:50 +0000 (+0300) Subject: net: mvneta: dcache flush TX descriptors at init X-Git-Tag: v2018.07-rc3~1^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0f8888b763fdc24e506b538ab521848e0566f9ca;p=u-boot net: mvneta: dcache flush TX descriptors at init This fixes sporadic timeout on initial packet Tx (usually ARP), with an error message like: timeout: packet not sent Reviewed-by: Stefan Roese Tested-by: Chris Packham Acked-by: Joe Hershberger Signed-off-by: Rabeeh Khoury Signed-off-by: Baruch Siach --- diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index 45e5eda955..254dd04697 100644 --- a/drivers/net/mvneta.c +++ b/drivers/net/mvneta.c @@ -1702,6 +1702,7 @@ static int mvneta_probe(struct udevice *dev) /* Align buffer area for descs and rx_buffers to 1MiB */ bd_space = memalign(1 << MMU_SECTION_SHIFT, BD_SPACE); + flush_dcache_range((ulong)bd_space, (ulong)bd_space + BD_SPACE); mmu_set_region_dcache_behaviour((phys_addr_t)bd_space, BD_SPACE, DCACHE_OFF); buffer_loc.tx_descs = (struct mvneta_tx_desc *)bd_space;