Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4877724pjb; Mon, 27 Jul 2020 07:25:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOKUmfVH5ao0ro4N0vhPjATjQOXZV3YAWYLxQJ4laoF///wvoCpSE4Cbq11aV/rioBCuBe X-Received: by 2002:a17:906:2681:: with SMTP id t1mr20866278ejc.350.1595859909686; Mon, 27 Jul 2020 07:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595859909; cv=none; d=google.com; s=arc-20160816; b=MHD8uyzziYSvab4QdJqyedweYURBYIZHp31h43cJtX9Nf7Xw978GbH9WI4++Uy42ta ybQcKc0R3rsr3/2zNr3nb0aak/I9ogWKw9QLKr6d5e/lBQhs+ztgtDKvO8wsOipl/ko6 qYou0nscA3pAzIJqZFMaBAZ+KzRBlsv/D8oiC5pZYXILeITjLnicD9fYgr6eGxWv8mN+ Xq5RjIetkf3YzDIc4Ukf8a4EIPtlVnOFAmZ8jMY0/5NmI5lnUB5SwWycy8t/nXP7xeB/ YWYWJyDfsDEF23u8pktvcWbxFXCshCNIV28SUADJzJQXNo8PT471/Gu3sT40ad8oM5tq wSFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8FE6EMJ2ShnEITuFMsxPkXGORv9GFTn/+781xZA4jQE=; b=MX/TA1osjtAc0yZM57QP1jGNH3LFbjsZicLCybXK3oyP/t3zmUZUZXU7v8eQRm8cdO iwAfJAfvBnecUja1R+lBnmQs2Xl5GnmBacvTzGcxyh1ogeM3McRJ2NKff7fxS7UxkzDC jNl5QuxEUQXDm07aDiuF/sIpG3iySAtUQoihDY01EuOGao0qH6vI9OhTOrNyskqjxQuY vlIgKSzEntjYwW3cp5786S/gKPdlVAAmbPEy6pKkjnNnRIzuYTaMGTE0sVifxbjiD6Tp OIBqxwj8n0bu0UuToxEZCn3eaZ/zSzyiWYb32JSShDy9gYnYbFPvxWTP1+w51bJHShfP ku9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="TY1/rCtE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c14si865527edn.56.2020.07.27.07.24.47; Mon, 27 Jul 2020 07:25:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="TY1/rCtE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732098AbgG0OX3 (ORCPT + 99 others); Mon, 27 Jul 2020 10:23:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:52634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732070AbgG0OXY (ORCPT ); Mon, 27 Jul 2020 10:23:24 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A6FD12075A; Mon, 27 Jul 2020 14:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859803; bh=lPIAlXZ+TuTrN574WW+Cre/QNN//vIBP8RLlfz5OV8E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TY1/rCtEq2k/6gc7XA9g0wxN4cITixU/4a2+T5fVc/6+oi3Vobq5VY5aQ6gKd/vEG gRyZBlpeZvk3ncvP4WfYSFOPY2d7hWbsX1NSxR7x/a1iSRvBXEPErH/8ZcJWziqW6x CWQ1HmT78n23ejDA7xqF4KA6XSlwwy85xMOgKjSM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sebastian Reichel , Tony Lindgren , Merlijn Wajer , Dmitry Torokhov , Sasha Levin Subject: [PATCH 5.7 111/179] ARM: dts: n900: remove mmc1 card detect gpio Date: Mon, 27 Jul 2020 16:04:46 +0200 Message-Id: <20200727134938.061895643@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Merlijn Wajer [ Upstream commit ed3e98e919aaaa47e9d9f8a40c3f6f4a22577842 ] Instead, expose the key via the input framework, as SW_MACHINE_COVER The chip-detect GPIO is actually detecting if the cover is closed. Technically it's possible to use the SD card with open cover. The only downside is risk of battery falling out and user being able to physically remove the card. The behaviour of SD card not being available when the device is open is unexpected and creates more problems than it solves. There is a high chance, that more people accidentally break their rootfs by opening the case without physically removing the card. Reviewed-by: Sebastian Reichel Acked-by: Tony Lindgren Signed-off-by: Merlijn Wajer Link: https://lore.kernel.org/r/20200612125402.18393-3-merlijn@wizzup.org Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- arch/arm/boot/dts/omap3-n900.dts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 4089d97405c95..3dbcae3d60d28 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@ -105,6 +105,14 @@ linux,code = ; linux,can-disable; }; + + machine_cover { + label = "Machine Cover"; + gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; /* 160 */ + linux,input-type = ; + linux,code = ; + linux,can-disable; + }; }; isp1707: isp1707 { @@ -819,10 +827,6 @@ pinctrl-0 = <&mmc1_pins>; vmmc-supply = <&vmmc1>; bus-width = <4>; - /* 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_LOW>; /* 160 */ }; /* most boards use vaux3, only some old versions use vmmc2 instead */ -- 2.25.1