mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02: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:
committed by
Marek Vasut
parent
66cf64107b
commit
f57661394a
@@ -26,7 +26,9 @@
|
||||
|
||||
typedef struct SCSI_cmd_block{
|
||||
unsigned char cmd[16]; /* command */
|
||||
unsigned char sense_buf[64]; /* for request sense */
|
||||
/* for request sense */
|
||||
unsigned char sense_buf[64]
|
||||
__attribute__((aligned(ARCH_DMA_MINALIGN)));
|
||||
unsigned char status; /* SCSI Status */
|
||||
unsigned char target; /* Target ID */
|
||||
unsigned char lun; /* Target LUN */
|
||||
|
Reference in New Issue
Block a user