]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/mvpp2.c
net: mvpp2: Round up top tx buffer boundaries for dcache ops
[u-boot] / drivers / net / mvpp2.c
index 88e88b903b3fc63757b0ed46312ef96a7c84f6a6..93eb1f2dd47a6bc9d49c108ec06d7c8b2620d30f 100644 (file)
@@ -3972,7 +3972,8 @@ static int mvpp2_send(struct udevice *dev, void *packet, int length)
                | MVPP2_TXD_F_DESC | MVPP2_TXD_L_DESC;
 
        /* Flush tx data */
-       flush_dcache_range((u32)packet, (u32)packet + length);
+       flush_dcache_range((unsigned long)packet,
+                          (unsigned long)packet + ALIGN(length, PKTALIGN));
 
        /* Enable transmit */
        mb();