summaryrefslogtreecommitdiff
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2013-03-06 14:08:32 +0000
committerMarek Vasut <marex@denx.de>2013-03-18 18:58:54 +0100
commit61755c7908be54a8221280cc801e65bc9d91dfad (patch)
tree3b0e0b294377daa42a30b74acdf35e70481f8746 /drivers/usb/host
parent8f62ca646fbad26b17f832cc3c2579080247de6e (diff)
downloadu-boot-imx-61755c7908be54a8221280cc801e65bc9d91dfad.zip
u-boot-imx-61755c7908be54a8221280cc801e65bc9d91dfad.tar.gz
u-boot-imx-61755c7908be54a8221280cc801e65bc9d91dfad.tar.bz2
usb: ehci: Fix aliasing issue in EHCI interrupt code
The interrupt endpoint handling code stores the buffer pointer in the QH padding field. We need to make it the size of a pointer to avoid strict aliasing issue with the compiler. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/ehci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index 46b535f..d090f0a 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -247,7 +247,7 @@ struct QH {
* aligned to 32 bytes
*/
union {
- uint8_t fill[16];
+ uint32_t fill[4];
void *buffer;
};
};