]> git.sur5r.net Git - u-boot/commit - drivers/net/sun8i_emac.c
net: sun8i_emac: Fix DMA alignment issues with the rx / tx buffers
authorHans de Goede <hdegoede@redhat.com>
Wed, 27 Jul 2016 15:31:17 +0000 (17:31 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sun, 31 Jul 2016 19:45:46 +0000 (21:45 +0200)
commit4069437dfbb2f70b92a84af7ce2d5cfba27247b9
tree2d360bad99dd84f3b3139ab103b813bf9ebc3248
parent3f8ea3b06eaf7c9e2456058bcbde32461e73aeb7
net: sun8i_emac: Fix DMA alignment issues with the rx / tx buffers

This fixes the following CACHE warnings when using sun8i_emac:

=> dhcp
BOOTP broadcast 1
BOOTP broadcast 2
CACHE: Misaligned operation at range [7bf594a87bf59628]
BOOTP broadcast 3
CACHE: Misaligned operation at range [7bf59c907bf59e10]
CACHE: Misaligned operation at range [7bf5a4787bf5a5f8]
DHCP client bound to address 10.42.43.80 (1009 ms)

Note this commit also changes the max rx size from 2024 to 2044,
matching what the kernel driver uses.

Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Corentin LABBE <clabbe.montjoie@gmail.com>
Cc: Amit Singh Tomar <amittomer25@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/net/sun8i_emac.c