From patchwork Mon Jan 21 03:21:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Arthur D." X-Patchwork-Id: 10772719 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1D3856C2 for ; Mon, 21 Jan 2019 07:42:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0DFBE29CE4 for ; Mon, 21 Jan 2019 07:42:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0202F29CEB; Mon, 21 Jan 2019 07:42:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA41729CE4 for ; Mon, 21 Jan 2019 07:42:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728586AbfAUHmi (ORCPT ); Mon, 21 Jan 2019 02:42:38 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:37780 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728470AbfAUHmi (ORCPT ); Mon, 21 Jan 2019 02:42:38 -0500 Received: by mail-lj1-f195.google.com with SMTP id t18-v6so16653820ljd.4; Sun, 20 Jan 2019 23:42:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=6ha8Pwp+alhE6MhgYjYVmg1Lm66WPTSXK6BD8BPQX9I=; b=Umlu8iMWtwCga4kkE21GVA3Sf6CPtdr1HP+36L0paWcV3/7c2n2h/baB/7v8ea6haS 4FAsmhLCJcQRdeo7pNzKsJ6AIpMpiLimu/vs1c6mjToU+0rOeL3FXIAialB/HH9KTOOu ZmC5tPR85Qxa4Anve2wEgvga94U8ZcIBMQp7acb4wAxO1Lk+wsiVOdZV4nq9GxvvRMWg 3uZWChDyuPvMXx0+doUiPFYO0mAx0uPlEDERJeXRXXAe+8xrsHOxaMH9QpAINzG4oj/X 7lKX7nV++vgrfP0GCt0i7xWGPdNV4JCExgx6973ODBlMkk0kCgYOEOiwOFkku6PSMr4T CDsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6ha8Pwp+alhE6MhgYjYVmg1Lm66WPTSXK6BD8BPQX9I=; b=IO/C+0w4uCe2gt8UNfEbwUWXNy9qZTNfVpjP9JWPTzc4vbkMazdv1j/7xZ0FsOkRYl Ya9Z+T4ZtlhvR8Agxgl/l8oPAg3Hfw2TtrjIFcvmJsXYKxi4jl7lXvdbPBf1K8iz5rL6 Pb0rSovtR2AjZ4Ew08PksVfF3f0813fvsJ6b8RfBXjTlul1uiQY1Zt8xtfX7RAC5HvXs g6FmLNqxI11EQkbqQZcz40SCqWONWiA28RiHN/vvNgvIzjYOvhgARswEWE/Fc2aiFY0I G79WmyHMjaVoXKmH+cbPwW3soXhCjk7VF4V3HqdI6QNpJVPUHS2lZxBjgLLRYt8gJHsN UDNQ== X-Gm-Message-State: AJcUukcXklLysxhiGJ2LL9mIDL8Qub9VO4chq66hvkkzyEoP5Bgu8l94 rXub5mROM7+QQu4/IHxABDXHxBas2fM= X-Google-Smtp-Source: ALg8bN5LNPaX9jHS2U60Mp+z04pl5UzyBmTN6fw8Cy+TBmNoPckLWfOTbnbiD5yBkmj3gep5nF55yQ== X-Received: by 2002:a2e:58b:: with SMTP id 133-v6mr18101405ljf.127.1548040927627; Sun, 20 Jan 2019 19:22:07 -0800 (PST) Received: from supervisor.net28 ([37.214.63.169]) by smtp.gmail.com with ESMTPSA id g15sm2003694lfb.1.2019.01.20.19.22.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Jan 2019 19:22:06 -0800 (PST) From: Arthur Demchenkov To: bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Arthur Demchenkov Subject: [PATCH] ARM: dts: n900: fix mmc1 card detect gpio polarity Date: Mon, 21 Jan 2019 06:21:09 +0300 Message-Id: <20190121032109.10220-1-spinal.by@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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). Kernels up to 4.19 ignored the card detect GPIO from DT. Signed-off-by: Arthur Demchenkov --- 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 */