[U-Boot] [PATCH v9] usb: align buffers at cacheline

2012-04-03 Thread Puneet Saxena
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-

[U-Boot] [PATCH v8] usb: align buffers at cacheline

2012-03-05 Thread Puneet Saxena
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

[U-Boot] [PATCH v7] usb: align buffers at cacheline

2012-03-05 Thread Puneet Saxena
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

[U-Boot] [PATCH v6] usb: align buffers at cacheline

2012-03-04 Thread Puneet Saxena
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

[U-Boot] [PATCH v5] usb: align buffers at cacheline

2012-03-04 Thread Puneet Saxena
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

[U-Boot] [PATCH v4] usb: align buffers at cacheline

2012-03-02 Thread Puneet Saxena
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

[U-Boot] [PATCH v3 1/2] usb: align buffers at cacheline

2012-02-29 Thread Puneet Saxena
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

[U-Boot] [PATCH v3 2/2] usb: Add CONFIG to fetch string descriptor

2012-02-29 Thread Puneet Saxena
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

[U-Boot] [PATCH v2 1/2] usb: align buffers at cacheline

2012-02-27 Thread Puneet Saxena
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

[U-Boot] [PATCH v2 2/2] usb: Add CONFIG to fetch string descriptor

2012-02-27 Thread Puneet Saxena
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

[U-Boot] [PATCH 1/2] usb: align buffers at cacheline

2012-02-23 Thread Puneet Saxena
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

[U-Boot] [PATCH 2/2] usb: Add quirk "USB_QUIRK_STRING_FETCH_255"

2012-02-23 Thread Puneet Saxena
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

[U-Boot] [PATCH] usb: align buffers at cache boundary

2012-02-17 Thread Puneet Saxena
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