]> git.sur5r.net Git - u-boot/commitdiff
net: Fix cache misalignment message after network load operations
authorPeter Chubb <Peter.Chubb@data61.csiro.au>
Wed, 14 Sep 2016 03:49:22 +0000 (03:49 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 13 Oct 2016 17:25:33 +0000 (12:25 -0500)
After any operation that downloads a file (e.g., pxe get, or dhcp), the
buffer containing the downloaded data is flushed.  This is unnecessary
and annoying.  Unnecessary, because
the network driver should already have fliushed the cache for the DMAed area,
and annoying because it generates a cache misalignment message.

Signed-off-by: Peter Chubb <peter.chubb@data61.csiro.au>
Acked-by: Heiko Schocher <hs@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
cmd/net.c

index b2f3c7b709bc59f7449b86a540faaf78d1cce292..bed76e4bcb0899e5c368d09ddd33ed6873a1b789 100644 (file)
--- a/cmd/net.c
+++ b/cmd/net.c
@@ -243,9 +243,6 @@ static int netboot_common(enum proto_t proto, cmd_tbl_t *cmdtp, int argc,
                return CMD_RET_SUCCESS;
        }
 
-       /* flush cache */
-       flush_cache(load_addr, size);
-
        bootstage_mark(BOOTSTAGE_ID_NET_LOADED);
 
        rcode = bootm_maybe_autostart(cmdtp, argv[0]);