Return-Path: Received: from mail-yk0-f179.google.com ([209.85.160.179]:36096 "EHLO mail-yk0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751531AbbIOEFL (ORCPT ); Tue, 15 Sep 2015 00:05:11 -0400 Received: by ykdt18 with SMTP id t18so153297222ykd.3 for ; Mon, 14 Sep 2015 21:05:10 -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 4/7] dts: imx51: fix sd card gpio polarity specified in device tree Date: Tue, 15 Sep 2015 01:04:49 -0300 Message-Id: <1442289892-32244-4-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 aca45c0e95dad1c4ba4d38da192756b0e10cbbbd 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/imx51-apf51dev.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx51-apf51dev.dts b/arch/arm/boot/dts/imx51-apf51dev.dts index 93d3ea1..0f3fe29 100644 --- a/arch/arm/boot/dts/imx51-apf51dev.dts +++ b/arch/arm/boot/dts/imx51-apf51dev.dts @@ -98,7 +98,7 @@ &esdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc1>; - cd-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>; + cd-gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; bus-width = <4>; status = "okay"; }; -- 1.9.1