mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
USB: Align buffers at cacheline
This avoids cache-alignment warnings shown in console when a usb command is entered. Whenever X bytes of unaligned buffer is invalidated, arm core invalidates X + Y bytes as per the cache line size and throws these warnings. Signed-off-by: Puneet Saxena <puneets@nvidia.com> Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
66cf64107b
commit
f57661394a
6 changed files with 61 additions and 58 deletions
|
@ -109,7 +109,9 @@ struct usb_device {
|
|||
int epmaxpacketout[16]; /* OUTput endpoint specific maximums */
|
||||
|
||||
int configno; /* selected config number */
|
||||
struct usb_device_descriptor descriptor; /* Device Descriptor */
|
||||
/* Device Descriptor */
|
||||
struct usb_device_descriptor descriptor
|
||||
__attribute__((aligned(ARCH_DMA_MINALIGN)));
|
||||
struct usb_config config; /* config descriptor */
|
||||
|
||||
int have_langid; /* whether string_langid is valid yet */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue