Re: [U-Boot] [PATCH] usb: align usb_endpoint_descriptor to 16-bit boundary

2011-11-26 Thread Remy Bohmer
Hi, 2011/10/20 Stefan Kristiansson : > The usb_endpoint_descriptor struct is 7 bytes large and is > defined as an array (ep_desc[USB_MAXENDPOINTS]) > in the usb_interface struct in include/usb.h > > This fact will result in that every odd index in that > array will start at an uneven address, this

[U-Boot] [PATCH] usb: align usb_endpoint_descriptor to 16-bit boundary

2011-10-20 Thread Stefan Kristiansson
The usb_endpoint_descriptor struct is 7 bytes large and is defined as an array (ep_desc[USB_MAXENDPOINTS]) in the usb_interface struct in include/usb.h This fact will result in that every odd index in that array will start at an uneven address, this in turn makes accesses to u16 wMaxPacketSize una