Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3829810ybb; Mon, 6 Apr 2020 17:02:28 -0700 (PDT) X-Google-Smtp-Source: APiQypJEkONAqkzElVWdWd7bYn2AYsbK0J98t2COWhLK4xh9SX/tKPSBWxWMWr1xiU9vGFZCSkNa X-Received: by 2002:a9d:340b:: with SMTP id v11mr1407076otb.14.1586217747875; Mon, 06 Apr 2020 17:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586217747; cv=none; d=google.com; s=arc-20160816; b=yw72zKO6A5ylbNwcBcGjIQYtmu31cg6QVDkKC5nJlPka48npX/fwF7emjmjY9gEXIG LETLbP4GLECpFBGAvtSETJjAxW9Wj1Zb5mEh3uUYq1FMIb7GULhpWi0eK7K/0quOEUZR pWGoiABrxTPoGnzVTYTaJUXR9xrqyBoPSH/xqbFhjHM6goRIMktZ7pW+QYoW14eo48UM dLRcRAjOqq2xlXHbtGo5dg3vT1Fcv9dAlKUD+mIVVaX5Z0nSxOd/x9BNoLhWo/EYXKx6 E5HO4Z5lKkwraJUE2AqZLhyHR3ECgVI+tmgoqD1GJXLav5T50SM1gxIT3QSId8pGV/RX bOhw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KHDCNV8B8I8h2BHPZ6XVtMeZdguhDdzsAmp3BQp6Fdo=; b=d1XpCvuU5QWF9I7SSyaYhtLdiR0CnPNzu8IAM/NlJkWX3zRIa8z0eDDYu5s6BJlsyr eHZHPtpXB6oSnwP85MNc+Ap4C1gQFSf99LHBDyxE16/savBhYrNkTK+HvSFCHibQM7Pm pi8DJvzzBvULvuKkgw7WWTNP87c/Vh23YN6mv908EaXhET9QYsJKwaEibXErg02fzPhO frk0ppovPCGLg7V39u2DYbnqxewuchMWlQgfmjH419NPwRrMEhcack/nDWtaSkAsg/tL WWs5tz7+sutFiJm6xmg1KcA+IhBYJgV6GEIc5UbpkHGC7j4AmJ62kM+rlQoW1yoNi3Pg V83w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Mdzmy0SV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17si493799ook.91.2020.04.06.17.02.16; Mon, 06 Apr 2020 17:02:27 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=Mdzmy0SV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726926AbgDGABa (ORCPT + 99 others); Mon, 6 Apr 2020 20:01:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:34224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726762AbgDGABX (ORCPT ); Mon, 6 Apr 2020 20:01:23 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2FD912082D; Tue, 7 Apr 2020 00:01:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586217682; bh=SteS77gACO4sJ7lpztNtH3/D2R3O5SRCa8yV+ZMnFak=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mdzmy0SVEjfSYvaOTSoqMQQZ3EjlVHUUQMaSffrGR0VLI3r9XVm8GM4q3LNBNYSfD guxYbQKGnlFcjXXaxzpkx8SgJ/0scp7XctuKFWBfMUmrH0jaQQ40fzaNhKs5qkPJ2m GDOg0py5JinKUyn1Ta3yz4B+XflWPSCaNHC3ZXVI= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Tony Lindgren , maemo-leste@lists.dyne.org, Arthur Demchenkov , Ivaylo Dimitrov , Merlijn Wajer , Pavel Machek , Sebastian Reichel , Sasha Levin , devicetree@vger.kernel.org Subject: [PATCH AUTOSEL 5.5 18/35] ARM: dts: omap4-droid4: Fix lost touchscreen interrupts Date: Mon, 6 Apr 2020 20:00:40 -0400 Message-Id: <20200407000058.16423-18-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200407000058.16423-1-sashal@kernel.org> References: <20200407000058.16423-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tony Lindgren [ Upstream commit 4abd9930d189dedaa59097144c6d8f623342fa72 ] Looks like we can have the maxtouch touchscreen stop producing interrupts if an edge interrupt is lost. This can happen easily when the SoC idles as the gpio controller may not see any state for an edge interrupt if it is briefly triggered when the system is idle. Also it looks like maxtouch stops sending any further interrupts if the interrupt is not handled. And we do have several cases of maxtouch already configured with a level interrupt, so let's do that. With level interrupt the gpio controller has the interrupt state visible after idle. Note that eventually we will probably also be using the Linux generic wakeirq configured for the controller, but that cannot be done until the maxtouch driver supports runtime PM. Cc: maemo-leste@lists.dyne.org Cc: Arthur Demchenkov Cc: Ivaylo Dimitrov Cc: Merlijn Wajer Cc: Pavel Machek Cc: Sebastian Reichel Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/boot/dts/motorola-mapphone-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/motorola-mapphone-common.dtsi b/arch/arm/boot/dts/motorola-mapphone-common.dtsi index da6b107da84a4..aeb5a673c209e 100644 --- a/arch/arm/boot/dts/motorola-mapphone-common.dtsi +++ b/arch/arm/boot/dts/motorola-mapphone-common.dtsi @@ -413,7 +413,7 @@ reset-gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>; /* gpio173 */ /* gpio_183 with sys_nirq2 pad as wakeup */ - interrupts-extended = <&gpio6 23 IRQ_TYPE_EDGE_FALLING>, + interrupts-extended = <&gpio6 23 IRQ_TYPE_LEVEL_LOW>, <&omap4_pmx_core 0x160>; interrupt-names = "irq", "wakeup"; wakeup-source; -- 2.20.1