public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] exynos: ehci: added missing 'packed' attribute
@ 2013-08-21 11:30 Mateusz Zalega
  2013-08-21 11:58 ` [U-Boot] [PATCH v2] " Mateusz Zalega
  0 siblings, 1 reply; 3+ messages in thread
From: Mateusz Zalega @ 2013-08-21 11:30 UTC (permalink / raw)
  To: u-boot

Structure exynos_usb_phy lacked __attribute__ ((packed)), which might
have led to broken EHCI functionality in builds based on more recent
compilers.

Signed-off-by: Mateusz Zalega <m.zalega@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Rajeshwari Shinde <rajeshwari.s@samsung.com>
---
 arch/arm/include/asm/arch-exynos/ehci.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/include/asm/arch-exynos/ehci.h b/arch/arm/include/asm/arch-exynos/ehci.h
index d79f25c..b76c57e 100644
--- a/arch/arm/include/asm/arch-exynos/ehci.h
+++ b/arch/arm/include/asm/arch-exynos/ehci.h
@@ -9,6 +9,7 @@
 
 #ifndef __ASM_ARM_ARCH_EHCI_H__
 #define __ASM_ARM_ARCH_EHCI_H__
+#include <linux/compiler-gcc.h>
 
 #define CLK_24MHZ		5
 
@@ -45,7 +46,7 @@ struct exynos_usb_phy {
 	unsigned int usbotgsys;
 	unsigned int reserved4;
 	unsigned int usbotgtune;
-};
+} __packed;
 
 /* Switch on the VBUS power. */
 int board_usb_vbus_init(void);
-- 
1.8.2.1

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

end of thread, other threads:[~2013-08-21 16:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-21 11:30 [U-Boot] [PATCH] exynos: ehci: added missing 'packed' attribute Mateusz Zalega
2013-08-21 11:58 ` [U-Boot] [PATCH v2] " Mateusz Zalega
2013-08-21 16:45   ` Mateusz Zalega

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