1 Jan 2000 01:03
[PATCH] USB: Remove __attribute__ ((packed)) for struct ehci_hccr and ehci_hcor.
Alexander Holler <holler <at> ahsoftware.de>
2000-01-01 00:03:49 GMT
2000-01-01 00:03:49 GMT
Remove __attribute__ ((packed)) to prevent byte access to soc
registers in some gcc versions.
Having patches to enable ehci for the BeagleBoard lying around for
several month, this one was the show-stopper.
Credits have to go to Laine Walker-Avina <lwalkera <at> ieee.org> for
finding the problem.
Signed-off-by: Alexander Holler <holler <at> ahsoftware.de>
---
drivers/usb/host/ehci.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index 945ab64..df9f055 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
<at> <at> -55,7 +55,7 <at> <at> struct ehci_hccr {
#define HCS_N_PORTS(p) (((p) >> 0) & 0xf)
uint32_t cr_hccparams;
uint8_t cr_hcsp_portrt[8];
-} __attribute__ ((packed));
+};
struct ehci_hcor {
uint32_t or_usbcmd;
<at> <at> -85,7 +85,7 <at> <at> struct ehci_hcor {
#define FLAG_CF (1 << 0) /* true: we'll support "high speed" */
uint32_t or_portsc[CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS];
(Continue reading)
RSS Feed