usb-s3c6400x: set alignment for ep0_setup_pkt

Align USB_DEVBSS buffers to 32 (as other USB drivers are doing), this
could solve rare random memory corruption issues on iPod Classic.

Change-Id: I86a28e10415eabedab7bf4a534530900284f81e5
This commit is contained in:
Cástor Muñoz 2016-02-14 12:14:42 +01:00
parent 6f54a86360
commit 0b6647f2e9

View file

@ -97,7 +97,7 @@ static struct ep_type endpoints[USB_NUM_ENDPOINTS][2];
static union {
struct usb_ctrlrequest header; /* 8 bytes */
unsigned char payload[64];
} _ep0_setup_pkt USB_DEVBSS_ATTR;
} _ep0_setup_pkt USB_DEVBSS_ATTR __attribute__((aligned(32)));
static struct usb_ctrlrequest *ep0_setup_pkt = UNCACHED_ADDR(&_ep0_setup_pkt.header);