]> git.sur5r.net Git - u-boot/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)
commitc7ac15388ec92e7c46924dee067c7253603dd01c
tree2d6f3b0a85fb16b389d677b8c92ccc0fd3aa3533
parentbead08800a2f054a90849e0c244022013fbe0196
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