From patchwork Tue Apr 12 14:03:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Abraham X-Patchwork-Id: 980 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:47:58 -0000 Delivered-To: patches@linaro.org Received: by 10.68.59.138 with SMTP id z10cs183995pbq; Tue, 12 Apr 2011 07:00:00 -0700 (PDT) Received: by 10.42.171.69 with SMTP id i5mr7364826icz.316.1302616799617; Tue, 12 Apr 2011 06:59:59 -0700 (PDT) Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by mx.google.com with ESMTP id wr20si4132526icb.24.2011.04.12.06.59.58; Tue, 12 Apr 2011 06:59:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of thomas.ab@samsung.com designates 203.254.224.25 as permitted sender) client-ip=203.254.224.25; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of thomas.ab@samsung.com designates 203.254.224.25 as permitted sender) smtp.mail=thomas.ab@samsung.com Received: from epmmp2 (mailout2.samsung.com [203.254.224.25]) by mailout2.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LJJ00AYLLJXRB30@mailout2.samsung.com>; Tue, 12 Apr 2011 22:59:57 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp2.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LJJ00D2PLJROG@mmp2.samsung.com>; Tue, 12 Apr 2011 22:59:57 +0900 (KST) Date: Tue, 12 Apr 2011 19:33:53 +0530 From: Thomas Abraham Subject: [PATCH] ARM: EXYNOS4: Fix card insert/removal event detection on smdkv310 board To: linux-samsung-soc@vger.kernel.org, nicolas.pitre@linaro.org Cc: kgene.kim@samsung.com, ben-linux@fluff.org, linaro-dev@lists.linaro.org, patches@linaro.org, Thomas Abraham Message-id: <1302617033-11048-1-git-send-email-thomas.ab@samsung.com> X-Mailer: git-send-email 1.6.6.rc2 Content-transfer-encoding: 7BIT On SMDKV310 board, a card detect gpio pin is available that is directly connected to the io pad of the sdhci controller. Fix incorrect value of cd_type field in platform data for sdhci instance 0 and 2. Signed-off-by: Thomas Abraham --- arch/arm/mach-exynos4/mach-smdkv310.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos4/mach-smdkv310.c b/arch/arm/mach-exynos4/mach-smdkv310.c index 1526764..f6b1c7e 100644 --- a/arch/arm/mach-exynos4/mach-smdkv310.c +++ b/arch/arm/mach-exynos4/mach-smdkv310.c @@ -78,7 +78,7 @@ static struct s3c2410_uartcfg smdkv310_uartcfgs[] __initdata = { }; static struct s3c_sdhci_platdata smdkv310_hsmmc0_pdata __initdata = { - .cd_type = S3C_SDHCI_CD_GPIO, + .cd_type = S3C_SDHCI_CD_INTERNAL, .ext_cd_gpio = EXYNOS4_GPK0(2), .ext_cd_gpio_invert = 1, .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, @@ -96,7 +96,7 @@ static struct s3c_sdhci_platdata smdkv310_hsmmc1_pdata __initdata = { }; static struct s3c_sdhci_platdata smdkv310_hsmmc2_pdata __initdata = { - .cd_type = S3C_SDHCI_CD_GPIO, + .cd_type = S3C_SDHCI_CD_INTERNAL, .ext_cd_gpio = EXYNOS4_GPK2(2), .ext_cd_gpio_invert = 1, .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL,