]> git.baikalelectronics.ru Git - uboot.git/commit
net: usb: r8152: Use ALLOC_CACHE_ALIGN_BUFFER() to allocate the buffers
authorStefan Roese <sr@denx.de>
Tue, 22 Nov 2016 15:14:23 +0000 (16:14 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 8 Dec 2016 16:36:22 +0000 (10:36 -0600)
commit14fdf12f6e208b21828f2b61968a624e35219303
tree2d6f3b0a85fb16b389d677b8c92ccc0fd3aa3533
parent67484265726d78c51a6a7095808753125f28c2fa
net: usb: r8152: Use ALLOC_CACHE_ALIGN_BUFFER() to allocate the buffers

Testing on theadorable (Armada XP) has shown, that using this driver
results in many cache misaligned warning, such as:

CACHE: Misaligned operation at range [7fabd8fc7fabd900]

This patch now uses the ALLOC_CACHE_ALIGN_BUFFER() macro to allocate the
buffers on a cache aligned boundary. This fixes all warnings seen on the
Armada XP platform.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Ted Chen <tedchen@realtek.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/usb/eth/r8152.c