From patchwork Wed Apr 23 15:10:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 4042261 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 94A43BFF02 for ; Wed, 23 Apr 2014 15:10:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7C8D8201B4 for ; Wed, 23 Apr 2014 15:10:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A32F420103 for ; Wed, 23 Apr 2014 15:10:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754850AbaDWPKh (ORCPT ); Wed, 23 Apr 2014 11:10:37 -0400 Received: from mail-lb0-f182.google.com ([209.85.217.182]:61439 "EHLO mail-lb0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752692AbaDWPKf (ORCPT ); Wed, 23 Apr 2014 11:10:35 -0400 Received: by mail-lb0-f182.google.com with SMTP id l4so913274lbv.13 for ; Wed, 23 Apr 2014 08:10:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=JoDPfiO5+MKELShBKqE9W4K6FfomwcnfKH7TV5mqhFM=; b=evNF4P0XdusisB+Ax1WQIfBfaEfFVIxvU+/njLCfqVHOEGcacX9IGyxIQ6qgzKOZ9n uU1zpaU7aZdCcCUrRDt1xIBr95r4sS1hjeyssHByn7iKTDY7WM/TdXb0oe0q0wX+DIXJ jT0JQVUHtgx4rqOilsV38y4vQIeKRY7SXrGc9hA/EhNdNTiWjX/Zx0cRt5AU6L22qktP ezBTtqho85o3Rl8rU9hCHMsJPs9X3grAQX/QxteYkkWzZkkHvOJatlJWLsZ4GXR4RZz7 nAvJbneW3X6jYb5MRbdC9Lnu5K8RDVpM6W+Q03Wdxc+znjxYC8KiMC61czvaaN6uQ7k4 JKxw== MIME-Version: 1.0 X-Received: by 10.152.43.168 with SMTP id x8mr689615lal.60.1398265833921; Wed, 23 Apr 2014 08:10:33 -0700 (PDT) Received: by 10.152.128.1 with HTTP; Wed, 23 Apr 2014 08:10:33 -0700 (PDT) Date: Wed, 23 Apr 2014 12:10:33 -0300 Message-ID: Subject: SD CRC error on mx27pdk From: Fabio Estevam To: Alexander Shiyan , Shawn Guo Cc: "linux-arm-kernel@lists.infradead.org" , Sascha Hauer , "linux-mmc@vger.kernel.org" Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, I am trying to add sd card support on mx27pdk with the following patch against Shawn's for-next: --- ,but I get this error: mxc-mmc 10013000.sdhci: mxcmci_finish_data: -EILSEQ mmc0: error -84 whilst initialising SD card mmc0: host does not support reading read-only switch. assuming write-enable. mmc0: new SDHC card at address b5a1 mmcblk0: mmc0:b5a1 SD04G 3.69 GiB mmcblk0: unknown partition table ,which comes from STATUS_CRC_READ_ERR being set. Any suggestions? Thanks, Fabio Estevam -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/imx27-pdk.dts b/arch/arm/boot/dts/imx27-pdk.dts index 0dbb16a..749aa72 100644 --- a/arch/arm/boot/dts/imx27-pdk.dts +++ b/arch/arm/boot/dts/imx27-pdk.dts @@ -20,6 +20,22 @@ reg = <0xa0000000 0x08000000>; }; + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + reg_mmc: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + gpio = <&gpio2 25 0>; + }; + }; + usbphy { compatible = "simple-bus"; #address-cells = <1>; @@ -92,6 +108,14 @@ nand-on-flash-bbt; }; +&sdhci1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sdhc1>; + cd-gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; + vmmc-supply = <®_mmc>; + status = "okay"; +}; + &uart1 { fsl,uart-has-rtscts; pinctrl-names = "default"; @@ -148,6 +172,19 @@ >; }; + pinctrl_sdhc1: sdhc1grp { + fsl,pins = < + MX27_PAD_SD1_D0__SD1_D0 0x0 + MX27_PAD_SD1_D1__SD1_D1 0x0 + MX27_PAD_SD1_D2__SD1_D2 0x0 + MX27_PAD_SD1_D3__SD1_D3 0x0 + MX27_PAD_SD1_CMD__SD1_CMD 0x0 + MX27_PAD_SD1_CLK__SD1_CLK 0x0 + MX27_PAD_USBH1_RCV__GPIO2_25 0x0 + MX27_PAD_USBH1_FS__GPIO2_26 0x0 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX27_PAD_UART1_TXD__UART1_TXD 0x0