From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yk0-f177.google.com ([209.85.160.177]:34251 "EHLO mail-yk0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751833AbbIOEFR (ORCPT ); Tue, 15 Sep 2015 00:05:17 -0400 Received: by ykdg206 with SMTP id g206so173384535ykd.1 for ; Mon, 14 Sep 2015 21:05:16 -0700 (PDT) From: Fabio Estevam To: stable@vger.kernel.org Cc: ulf.hansson@linaro.org, aisheng.dong@freescale.com, shawnguo@kernel.org, kernel@pengutronix.de, Fabio Estevam Subject: [PATCH 7/7] dts: imx25: fix sd card gpio polarity specified in device tree Date: Tue, 15 Sep 2015 01:04:52 -0300 Message-Id: <1442289892-32244-7-git-send-email-festevam@gmail.com> In-Reply-To: <1442289892-32244-1-git-send-email-festevam@gmail.com> References: <1442289892-32244-1-git-send-email-festevam@gmail.com> Sender: stable-owner@vger.kernel.org List-ID: From: Dong Aisheng commit cf75eb15be2bdd054a76aeef6458beaa4a6ab770 upstream. cd-gpios polarity should be changed to GPIO_ACTIVE_LOW and wp-gpios should be changed to GPIO_ACTIVE_HIGH. Otherwise, the SD may not work properly due to wrong polarity inversion specified in DT after switch to common parsing function mmc_of_parse(). Cc: # 4.1 Signed-off-by: Dong Aisheng Acked-by: Shawn Guo Signed-off-by: Ulf Hansson Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/imx25-pdk.dts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx25-pdk.dts b/arch/arm/boot/dts/imx25-pdk.dts index dd45e69..9351296 100644 --- a/arch/arm/boot/dts/imx25-pdk.dts +++ b/arch/arm/boot/dts/imx25-pdk.dts @@ -10,6 +10,7 @@ */ /dts-v1/; +#include #include #include "imx25.dtsi" @@ -114,8 +115,8 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; - cd-gpios = <&gpio2 1 0>; - wp-gpios = <&gpio2 0 0>; + cd-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; status = "okay"; }; -- 1.9.1