mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
net: mvpp2: Round up top tx buffer boundaries for dcache ops
check_cache_range() warns that the top boundaries are not properly aligned when flushing or invalidating the buffers and make these operations fail. This gets rid of the warnings: CACHE: Misaligned operation at range ... Signed-off-by: Stefan Roese <sr@denx.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
e1b27d27a6
commit
f811e04ad7
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue