From patchwork Wed Aug 21 11:58:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Zalega X-Patchwork-Id: 268795 X-Patchwork-Delegate: promsoft@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 7007E2C00C0 for ; Wed, 21 Aug 2013 21:59:40 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8841F4A019; Wed, 21 Aug 2013 13:59:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nC5qzUD7LtSm; Wed, 21 Aug 2013 13:59:38 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 898FC4A023; Wed, 21 Aug 2013 13:59:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8AF954A023 for ; Wed, 21 Aug 2013 13:59:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id orvmVwQjEagd for ; Wed, 21 Aug 2013 13:59:22 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mailout4.w1.samsung.com (mailout4.w1.samsung.com [210.118.77.14]) by theia.denx.de (Postfix) with ESMTP id 97B3D4A019 for ; Wed, 21 Aug 2013 13:59:15 +0200 (CEST) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MRV00HC9QMP8X90@mailout4.w1.samsung.com> for u-boot@lists.denx.de; Wed, 21 Aug 2013 12:59:13 +0100 (BST) X-AuditID: cbfec7f4-b7f5f6d000000ff6-c7-5214ab91e190 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 6B.A0.04086.19BA4125; Wed, 21 Aug 2013 12:59:13 +0100 (BST) Received: from kernelpanic.DIGITAL.local ([106.120.53.14]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MRV009E0QMOP510@eusync3.samsung.com>; Wed, 21 Aug 2013 12:59:13 +0100 (BST) From: Mateusz Zalega To: u-boot@lists.denx.de Date: Wed, 21 Aug 2013 13:58:03 +0200 Message-id: <1377086283-727-1-git-send-email-m.zalega@samsung.com> X-Mailer: git-send-email 1.8.2.1 In-reply-to: <1377084658-24651-1-git-send-email-m.zalega@samsung.com> References: <1377084658-24651-1-git-send-email-m.zalega@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNJMWRmVeSWpSXmKPExsVy+t/xq7oTV4sEGWx8zWRxtukNu8Xcd1OY LDqOtDBatKw9wGrxdm8nuwOrx9k7Oxg9+rasYgxgiuKySUnNySxLLdK3S+DKaHqeV/CZo+Lk x8PsDYwH2bsYOTkkBEwkTq2+yQZhi0lcuLceyObiEBJYyiixbsJ6Jginn0ni2dc7rCBVbALa Ejf2zgfrFhGQkPjVf5URpIhZYBVQx78PzF2MHBzCAk4S3cf0QUwWAVWJpt86IOW8QNFvc/qY IJYpSBzfvo0RpIRTwFVi0togkLCQgItE96rzbBMYeRcwMqxiFE0tTS4oTkrPNdQrTswtLs1L 10vOz93ECAmQLzsYFx+zOsQowMGoxMN7QVkkSIg1say4MvcQowQHs5II76JqoBBvSmJlVWpR fnxRaU5q8SFGJg5OqQZGWa+MRqMXHuGxyxz+TT7x9EvGxwlyf9m6bnzvMmO1Llhzz361IKNE REr93XkPDrLFtEqLbar5y6bU3B9zNziOfcq83Vz9r7dfMUvkYeXnbpjmrq9bmrPZJrVr3u5W 25eHJ4Q5tfxL9HWd/ykz7smzHY577y3RCXg0tXViZZqGSUXz5oLdieuVWIozEg21mIuKEwHu zMfP7gEAAA== Cc: Kyungmin Park , Rajeshwari Shinde Subject: [U-Boot] [PATCH v2] exynos: ehci: added missing 'packed' attribute X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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 Signed-off-by: Kyungmin Park Cc: Minkyu Kang Cc: Rajeshwari Shinde --- Changes since v1: - changed linux/compiler-gcc.h to linux/compiler.h --- 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..c965b2c 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 #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);