public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] USB:host: Attribute packed removed from usb structures
@ 2012-02-24 11:58 Amit Virdi
  2012-02-24 19:18 ` Mike Frysinger
  2012-02-25 10:12 ` Albert ARIBAUD
  0 siblings, 2 replies; 20+ messages in thread
From: Amit Virdi @ 2012-02-24 11:58 UTC (permalink / raw)
  To: u-boot

From: Vipin Kumar <vipin.kumar@st.com>

Packed attribute is forcing a bytewise write on device registers,
there by, resulting in a misbehavior on gcc-4.4.1.
Reverting the structures to non-packed

Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
---
 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 3d0ad0c..df9f055 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -55,7 +55,7 @@ struct ehci_hccr {
 #define HCS_N_PORTS(p)		(((p) >> 0) & 0xf)
 	uint32_t cr_hccparams;
 	uint8_t cr_hcsp_portrt[8];
-} __attribute__ ((packed, aligned(4)));
+};
 
 struct ehci_hcor {
 	uint32_t or_usbcmd;
@@ -85,7 +85,7 @@ 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];
 	uint32_t or_systune;
-} __attribute__ ((packed, aligned(4)));
+};
 
 #define USBMODE		0x68		/* USB Device mode */
 #define USBMODE_SDIS	(1 << 3)	/* Stream disable */
-- 
1.7.2.2

^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2012-03-07 13:49 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-24 11:58 [U-Boot] [PATCH] USB:host: Attribute packed removed from usb structures Amit Virdi
2012-02-24 19:18 ` Mike Frysinger
2012-02-27 10:02   ` Amit Virdi
2012-02-27 18:25     ` Mike Frysinger
2012-02-25 10:12 ` Albert ARIBAUD
2012-02-27  7:16   ` Vipin Kumar
2012-02-27 13:14     ` Marek Vasut
2012-02-27 18:26       ` Mike Frysinger
2012-02-27 20:53         ` Marek Vasut
2012-02-28  0:56           ` Mike Frysinger
2012-02-29 10:25             ` Amit Virdi
2012-03-06 12:06               ` Amit Virdi
2012-03-06 12:51                 ` Marek Vasut
2012-03-07  8:30                   ` Amit Virdi
2012-03-07 11:38                     ` Marek Vasut
2012-03-07 12:12                       ` Amit Virdi
2012-03-06 16:11                 ` Mike Frysinger
2012-03-07  8:23                   ` Amit Virdi
2012-03-07 13:33                     ` Mike Frysinger
2012-03-07 13:49                       ` Amit Virdi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox