From patchwork Wed Apr 10 17:05:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Nelson X-Patchwork-Id: 2422381 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id 6CCE73FCA5 for ; Wed, 10 Apr 2013 17:06:07 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UPyT7-00078Y-T1; Wed, 10 Apr 2013 17:05:58 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UPyT4-0001Xn-3C; Wed, 10 Apr 2013 17:05:54 +0000 Received: from mail-ia0-x234.google.com ([2607:f8b0:4001:c02::234]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UPyT1-0001XC-EC for linux-arm-kernel@lists.infradead.org; Wed, 10 Apr 2013 17:05:52 +0000 Received: by mail-ia0-f180.google.com with SMTP id l29so603653iag.25 for ; Wed, 10 Apr 2013 10:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=6ZD5aKuUpCzPaNwYbm8atiaDqPV7DIS+Jq0L6G7fomM=; b=HtPnL1F0AAUUGZHNXwebekUQAQKJHqOGAY2SazfRwGUPCPliTULY/8b10dtYxwq3Pt j2BnEs+D1KHO7LXhuc4eeYxWXfx499Cw0OZtTL6zUkhFBh5k1L3xZ7RLWfWaRZpwaY98 KtgIuvSChjkmf8jpDqFp3YyxCzD00ki5A51sGMlDYBecRadnCMAyekJn1GMM1Sip87LA Y+dB2Hs+9g8Iz20VcFCMxr4D55VgwQNeLo6UBVtsGmKfFNdcnhHmpBsGGbvF/aRurE4g oubWK3pPzcWXSd4kDYtN48YIqnZBvZH595IYPn8NiYietrFWhvwr9k654LSsZlYDPUf+ 3Bag== X-Received: by 10.50.108.235 with SMTP id hn11mr1925122igb.107.1365613549098; Wed, 10 Apr 2013 10:05:49 -0700 (PDT) Received: from localhost.localdomain ([64.77.213.245]) by mx.google.com with ESMTPS id xe9sm27987378igb.7.2013.04.10.10.05.45 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 10 Apr 2013 10:05:48 -0700 (PDT) From: Robert Nelson To: nicolas.ferre@atmel.com, plagnioj@jcrosoft.com Subject: [PATCH] ARM: at91/dts: at91sam9g20ek_2mmc: fix card detection Date: Wed, 10 Apr 2013 12:05:32 -0500 Message-Id: <1365613532-18919-1-git-send-email-robertcnelson@gmail.com> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130410_130551_570422_14FB1BE4 X-CRM114-Status: UNSURE ( 9.19 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (robertcnelson[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Robert Nelson , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Use cd-inverted to fix card detection on the at91sam9g20-ek Rev C Dev board. With: v3.9-rc6: atmel_mci fffa8000.mmc: version: 0x210 atmel_mci fffa8000.mmc: using PDC atmel_mci fffa8000.mmc: Atmel MCI controller at 0xfffa8000 irq 30, 2 slots Waiting for root device /dev/mmcblk0p2... With: v3.9-rc6 + this patch, card is now detected. atmel_mci fffa8000.mmc: version: 0x210 atmel_mci fffa8000.mmc: using PDC mmc0: host does not support reading read-only switch. assuming write-enable. mmc0: new SD card at address 0007 atmel_mci fffa8000.mmc: Atmel MCI controller at 0xfffa8000 irq 30, 2 slots mmcblk0: mmc0:0007 SD02G 1.89 GiB mmcblk0: p1 p2 Although other issues still remain: mmcblk0: retrying using single block read mmcblk0: error -115 sending stop command, original cmd response 0xb00, card status 0x900 mmcblk0: error -110 transferring data, sector 834296, nr 8, cmd response 0xb00, card status 0x0 mmcblk0: retrying using single block read Signed-off-by: Robert Nelson --- arch/arm/boot/dts/at91sam9g20ek_2mmc.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/at91sam9g20ek_2mmc.dts b/arch/arm/boot/dts/at91sam9g20ek_2mmc.dts index 66467b1..d1b1521 100644 --- a/arch/arm/boot/dts/at91sam9g20ek_2mmc.dts +++ b/arch/arm/boot/dts/at91sam9g20ek_2mmc.dts @@ -24,6 +24,7 @@ reg = <0>; bus-width = <4>; cd-gpios = <&pioC 2 0>; + cd-inverted; }; };