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
---
This patch is tested on "denx-
As DMA expects the buffers to be equal and larger then
cache lines, This aligns buffers at cacheline.
Signed-off-by: Puneet Saxena
---
Changes for V7:
- Trivial change, missed removing memcpy. Removed now.
Changes for V8:
- Corrected "setup_packet" alloca
As DMA expects the buffers to be equal and larger then
cache lines, This aligns buffers at cacheline.
Signed-off-by: Puneet Saxena
---
Changes for V6:
- Cosmetic changes.
Changes for V7:
- Trivial change, missed removing memcpy. Removed now.
common/cmd_usb.c|3
As DMA expects the buffers to be equal and larger then
cache lines, This aligns buffers at cacheline.
Signed-off-by: Puneet Saxena
---
Changes for V5:
- Aligned "usb_device_descriptor" using ARCH_DMA_MINALIGN
Changes for V6:
- Cosmetic changes.
common/cmd_usb.c
As DMA expects the buffers to be equal and larger then
cache lines, This aligns buffers at cacheline.
Signed-off-by: Puneet Saxena
---
Changes for V4:
- Added memcpy to copy local descriptor to global descriptor.
Without that, USB version, class, vendor, product Id...etc is not
As DMA expects the buffers to be equal and larger then
cache lines, This aligns buffers at cacheline.
Signed-off-by: Puneet Saxena
---
Changes for V3:
- Removed local descriptor elements copy to global descriptor elements
- Removed "Signed-off-by: Jim Lin " from commit messag
As DMA expects the buffers to be equal and larger then
cache lines, This aligns buffers at cacheline.
Signed-off-by: Puneet Saxena
---
Changes for V2:
- Use "ARCH_DMA_MINALIGN" directly
- Use "ALIGN" to align size as cacheline
- Removed headers from usb.h
Add "CONFIG_USB_STRING_FETCH" to fetch first string descriptor length
and then pass this length to fetch string descriptor.
Signed-off-by: Puneet Saxena
---
Changes for V2:
- Change existing config by "CONFIG_USB_STRING_FETCH"
Changes for V3:
- Removed extra new
As DMA expects the buffers to be equal and larger then
cache lines, This aligns buffers at cacheline.
Signed-off-by: Puneet Saxena
Signed-off-by: Jim Lin
---
Changes for V2:
- Use "ARCH_DMA_MINALIGN" directly
- Use "ALIGN" to align size as cacheline
- Remove
Add "CONFIG_USB_STRING_FETCH" to fetch string using descriptor length
then fetch actual bytes, returned in descriptor buffer.
Signed-off-by: Puneet Saxena
---
Changes for V2:
- Change config by "CONFIG_USB_STRING_FETCH"
common/usb.c|4
in
As DMA expects the buffers to be equal and larger then
cache lines, This aligns buffers at cacheline.
Signed-off-by: Puneet Saxena
Signed-off-by: Jim Lin
---
Changes for v2:
- Split the commit in to 2 commits
- "ARCH_DMA_MINALIGN" replacement
- Making stop address cache line
Add a quirk "USB_QUIRK_STRING_FETCH_255", borrowed from Linux
kernel to fetch string using descriptor length then fetch actual bytes
returned in descriptor buffer.
Signed-off-by: Puneet Saxena
---
Changes for v2:
- Add quirk for fetching actual bytes
common/usb.c
igned(size)))" by "__aligned(size)".
As "__GNUC__" directive should be defined to use "__packed" and
"__aligned(size)" and current patch is not supporting it, ignoring
the "checkpatch.pl" warning.
Signed-off-by: Puneet Saxena
Signed-off-by: Jim
13 matches
Mail list logo