Patchwork [U-Boot] exynos: ehci: added missing 'packed' attribute

login
register
mail settings
Submitter Mateusz Zalega
Date Aug. 21, 2013, 11:30 a.m.
Message ID <1377084658-24651-1-git-send-email-m.zalega@samsung.com>
Download mbox | patch
Permalink /patch/268794/
State Changes Requested
Delegated to: Minkyu Kang
Headers show

Comments

Mateusz Zalega - Aug. 21, 2013, 11:30 a.m.
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(-)

Patch

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);