Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6458351imu; Mon, 21 Jan 2019 09:13:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN41XAfsEg3Q6Wl06G2CcHldIznEII4SV2+x+Oban9HT3lOuP7lWO36kV8ldpcpeZv8vDXmi X-Received: by 2002:a17:902:24e7:: with SMTP id l36mr31022009plg.61.1548090800766; Mon, 21 Jan 2019 09:13:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548090800; cv=none; d=google.com; s=arc-20160816; b=ipOfWFtEfCZLvQLbgS+BCUeOt0CGCnNGBOGrg47VFXft0NHR4At3U1uzZGLh7S+CDI ySmg4L9suNXzIzo35AZt6YvYIgcrqd0IBezuKHHTFIRcNpxCv1Q46OUggalAieGR493h QB3+8f1Xy/JPJj/axDB1YiHLwMOZGQFnmA7gs/NLBQ//ctIDm1GSm3+HYKsTUxOFdQYT H2k4qX+sGYWr7gdYxfnDeutteZNmTQRnWeXheN6blzhDbmO549dFSaEZDX253bDd0Zyo G60uFqLtyXiOEFNDzI0YO4vXFXZgdC6URlAKpjtAob2otFdM1msTBqMYc/TxV+/L1yfj W3GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Swd+Vsq3Y3al+9k9PbE8vA7NkmZR8+YZKAxhVz9wrNc=; b=np2rZxdDEn4Fxw2Zt8nJRb7huwj+lqonI4GrUiAqqp9IdWmj2EmOtLnTGxkaQOts/3 uEoDo2U+B3Ph4uJHttpvEDdWtLp26bZXdiZPCKzixSswZbv5wv5proLEMwdiT49mfb1a 0lA6GAjBl0r78LWXhCmiMnTtOUoPFx2zuxlv8GZRhTXhTfUc/saHjsT8MY65hyz1/mk1 ZR7m0zkYWqefoS9XYftDzNQEsuVMQU8CwTrJldZf0DW2RCepE5I5Uok1RRS4lqbFvGWc fLO19Xk89MdB0WzwRbkUaxC/i2mptkJV72iyJDVfwL67mY1XhOBFzLvAuVzuEmJiexYF xf4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b89si11134084pfj.207.2019.01.21.09.13.05; Mon, 21 Jan 2019 09:13:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727430AbfAURLG (ORCPT + 99 others); Mon, 21 Jan 2019 12:11:06 -0500 Received: from muru.com ([72.249.23.125]:34448 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727384AbfAURLF (ORCPT ); Mon, 21 Jan 2019 12:11:05 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 92DCF812F; Mon, 21 Jan 2019 17:11:11 +0000 (UTC) Date: Mon, 21 Jan 2019 09:11:01 -0800 From: Tony Lindgren To: Arthur Demchenkov , Aaro Koskinen Cc: bcousson@baylibre.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: dts: n900: fix mmc1 card detect gpio polarity Message-ID: <20190121171101.GD5544@atomide.com> References: <20190121032109.10220-1-spinal.by@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190121032109.10220-1-spinal.by@gmail.com> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, * Arthur Demchenkov [190121 03:22]: > Wrong polarity of card detect GPIO pin leads to the system not > booting from external mmc, if the back cover of N900 is closed. > When the cover is open the system boots fine. > > This wasn't noticed before, because of a bug, which was fixed > by commit e63201f19 (mmc: omap_hsmmc: Delete platform data GPIO > CD and WP). Aaro, does this work for your test case too? > Kernels up to 4.19 ignored the card detect GPIO from DT. Hmm so should this have a Fixes tag or not? Regards, Tony > arch/arm/boot/dts/omap3-n900.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts > index 182a53991c90..826920e6b878 100644 > --- a/arch/arm/boot/dts/omap3-n900.dts > +++ b/arch/arm/boot/dts/omap3-n900.dts > @@ -814,7 +814,7 @@ > /* For debugging, it is often good idea to remove this GPIO. > It means you can remove back cover (to reboot by removing > battery) and still use the MMC card. */ > - cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */ > + cd-gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; /* 160 */ > }; > > /* most boards use vaux3, only some old versions use vmmc2 instead */ > -- > 2.11.0 >