Message ID | 20240217195444.1767178-1-megi@xff.cz |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-70042-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp484477dyc; Sat, 17 Feb 2024 11:55:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWY2dBGLxrGKyWQvah+TObgK9ZKd/g6mxs59V9Qbdxmt5MUfw0vlwn0RYImrGuYVrKfLZ3N9EhFUzQIIzkZ5mBdFluFMA== X-Google-Smtp-Source: AGHT+IF3wt0/SQJsLvb0JF3vAlP0gDGrs91MEpGxv1xR/t5mSHihA2Cc+kEFkwjXFtQCSBFGj8u4 X-Received: by 2002:a05:6a00:27ac:b0:6e0:520f:bb7c with SMTP id bd44-20020a056a0027ac00b006e0520fbb7cmr10424174pfb.23.1708199720290; Sat, 17 Feb 2024 11:55:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708199720; cv=pass; d=google.com; s=arc-20160816; b=0oQQPAUzIO2bPUPg5yiU1SWyfblFAEsb5BnNVkzjaRoTS6gRMIOLFqQ+vjvlmRvdA7 VlUy12ZbdbFtxwAeqMDLR0BoW7a86A2soepz/n4ingrAhhBxT15GqukHi0GtgCY+bt1r GD/x2nKjUq+AabOt16xlkYhPp3wMTrXa13w6M4hLgIMEy+skNgzzBWIQtSPkWRoUbA7/ WH5mmzMomnNQzj5xY9gpvlg4+R4ttTKVHDvjgHH70x3K9YR9UkJhTnilDBPwDs8tSlH9 CkoOO3m2Wo+EFb0UBuOuY8xJqlRyRm/JQqZgPNUxl9pJ6IbGJjdDU6a2o7bE4Uk0vaOT HQWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=tQiUZziUkWm9gwsq9vfNW7ykHHdkAZzIm+6u62ykjHk=; fh=TPc6Y2rI8MpZQ6HKGPuLWUffWpaBRQOIFzmWU+A6lMw=; b=z4its3/e3aCOnKdFZ+dVgj1bZ0alkebn++kKIgCPHnjoL7QqrJ5EJRI0DFWIPNeVoT QKjXZUYb6SRJIaJ9kJUP+45MAwHRfnS8FwZbmJRUwg6ANi9lZXi7N1SILXifX+LXClft bQyE9vafJv+7vaKk8qm5qMr4SwGclWb97fLZKuhLH6BG8b1HlRdpWytKUboa/PsXH7Dz cArkam+P3P7z9mSESBUM2Ba/YrvjKjF2TFj+2PFnB9FpvtTcy45kgAmvUiwlPPypN9eN 3OeBsAeYdcSy0OUHYpXncBZSydUEz9zwPWauWFfhFhYjxZGiLRMaApggyOAXZB5wIN9v YEsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=Yx0qN48Z; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-70042-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70042-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id jw17-20020a056a00929100b006e02ff52016si1982868pfb.291.2024.02.17.11.55.20 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 11:55:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70042-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=Yx0qN48Z; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-70042-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70042-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B3AA22822BA for <ouuuleilei@gmail.com>; Sat, 17 Feb 2024 19:55:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2FE8C7E58F; Sat, 17 Feb 2024 19:55:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b="Yx0qN48Z" Received: from vps.xff.cz (vps.xff.cz [195.181.215.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99C217E586 for <linux-kernel@vger.kernel.org>; Sat, 17 Feb 2024 19:54:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.181.215.36 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708199695; cv=none; b=tdtZ0IIbuprAniAJdiGtQrIHD+XXvcdU+h+qYaXahu/Gkzl89x5jKVzPXLtZywEQDo3vIieKkd4aSc47ZMgdW3JZsdXi0EuwFc8gjy6Ixmt7a0+eBgt97VABkyUVX1Fy9lw/LQcUGRWU18BOCR9kLM3UWfHYHHr5RIxW3C+9Ylg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708199695; c=relaxed/simple; bh=5B2tqwdAd/7cOO7ni6BM2Qq2D6cyGQe6gEUTcdh1o0w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tGUWhbFni3YuLNlWPHWYVk95auUtSROGEwf+CUzlEtp2B2N/AJkYJ7HOhtWeL8RY+E9pG94H0V+G0Y4Oi8ta237Dibkygn5LMErVtiJ2M/altm972gJSZfpSmTWTGGUQz029P+zGQnJuGvc7AHLS4TJ5K6Ha/wHsoibkKvNuYu8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz; spf=pass smtp.mailfrom=xff.cz; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b=Yx0qN48Z; arc=none smtp.client-ip=195.181.215.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xff.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xff.cz; s=mail; t=1708199690; bh=5B2tqwdAd/7cOO7ni6BM2Qq2D6cyGQe6gEUTcdh1o0w=; h=From:To:Cc:Subject:Date:From; b=Yx0qN48ZlSDGwit5VnHGv+6fkR4z9AlguC5ICQW8lVNM00a2zcNXRkeUyl2hUF6iV KrbHcfmDF45B/9UwHMcsFXVaQiGbuDXM2gfNED9vysQkGkZMgnpvBE3oylzqcLMQ3v fpya6lQt5AidvVUOgb5e1V42oUqpaMaxV4KipNcM= From: =?utf-8?q?Ond=C5=99ej_Jirman?= <megi@xff.cz> To: linux-kernel@vger.kernel.org Cc: Ondrej Jirman <megi@xff.cz>, Lee Jones <lee@kernel.org> Subject: [PATCH 3/3] mfd: rk8xx-core: Fix interrupt processing order for power key button Date: Sat, 17 Feb 2024 20:54:35 +0100 Message-ID: <20240217195444.1767178-1-megi@xff.cz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791177229845014127 X-GMAIL-MSGID: 1791177229845014127 |
Series |
None
|
|
Commit Message
Ondřej Jirman
Feb. 17, 2024, 7:54 p.m. UTC
From: Ondrej Jirman <megi@xff.cz> Process rise event last, to avoid stuck keys when multiple interrupts are coalesced. This can happen typically when resuming from suspend via power key press and holding the power button for a bit too short, so that RISE an FALL IRQ flags are set before any interrupt routine has a chance to run. Input subsystem will interpret it as holding down a power key for a long time, which leads to unintended initiation of shutdown UI on some OSes. Signed-off-by: Ondrej Jirman <megi@xff.cz> --- drivers/mfd/rk8xx-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/rk8xx-core.c b/drivers/mfd/rk8xx-core.c index b1ffc3b9e2be..e2261b68b844 100644 --- a/drivers/mfd/rk8xx-core.c +++ b/drivers/mfd/rk8xx-core.c @@ -43,8 +43,8 @@ static struct resource rk806_pwrkey_resources[] = { }; static const struct resource rk817_pwrkey_resources[] = { - DEFINE_RES_IRQ(RK817_IRQ_PWRON_RISE), DEFINE_RES_IRQ(RK817_IRQ_PWRON_FALL), + DEFINE_RES_IRQ(RK817_IRQ_PWRON_RISE), }; static const struct resource rk817_charger_resources[] = {