From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87CF51E522; Thu, 30 Jan 2025 14:29:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738247393; cv=none; b=P9NeEQsiBBG4WyecN9qrAUPLrUtgYNx3bhX1kFH3Alu1oOj/o3sc08Nyj7OfXPFHSCKQvBMnzCNDCriih6mVUrt9l/+qAgqW4Oior7rtU1I5iYZydQw2IrCydL3GUqoZlbipH5QBq2rKEIpxKTYNXTC9+1N6n1NuVX8swP2gbHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738247393; c=relaxed/simple; bh=73GBAkK9oDH+fYg92J7t/31MIqPpPlKTHK1dXHgjbOw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UVde63EMAWCNs9KH/R/wN+ANnrxMSDpnAUohZ20CDqwOczWtL1vcJ/g8Eiuaf7VDmqJwKTnEu1t9BfXm6+jdqsQLrCBI5dwTxXEEwXb3i0z3gc+G5ywelK4/5IG2c98UjccUmmalDkfRErSrj+covjWs3ccwdOkq0xjM3i/KuHc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aSPYenX7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="aSPYenX7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07F38C4CED2; Thu, 30 Jan 2025 14:29:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1738247393; bh=73GBAkK9oDH+fYg92J7t/31MIqPpPlKTHK1dXHgjbOw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aSPYenX71eOr6LHH8MQ0Z2Iu1m2esciM0WgeOVxfRngPrjQzDGXPQPo6YcKBP76Hw qaWzivD0oNvio5hImK4sS7UacpYnz47vUIwaDNUS4G9ijnLV653ujoYrs6ayQ6WwkO GlvLTY27K9wJBVdQeTHg88cvXbMoZAwrku+SVFSc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Philippe Simons , Thomas Gleixner , Sasha Levin Subject: [PATCH 6.1 06/49] irqchip/sunxi-nmi: Add missing SKIP_WAKE flag Date: Thu, 30 Jan 2025 15:01:42 +0100 Message-ID: <20250130140134.087020341@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250130140133.825446496@linuxfoundation.org> References: <20250130140133.825446496@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Philippe Simons [ Upstream commit 3a748d483d80f066ca4b26abe45cdc0c367d13e9 ] Some boards with Allwinner SoCs connect the PMIC's IRQ pin to the SoC's NMI pin instead of a normal GPIO. Since the power key is connected to the PMIC, and people expect to wake up a suspended system via this key, the NMI IRQ controller must stay alive when the system goes into suspend. Add the SKIP_WAKE flag to prevent the sunxi NMI controller from going to sleep, so that the power key can wake up those systems. [ tglx: Fixed up coding style ] Signed-off-by: Philippe Simons Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/all/20250112123402.388520-1-simons.philippe@gmail.com Signed-off-by: Sasha Levin --- drivers/irqchip/irq-sunxi-nmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-sunxi-nmi.c b/drivers/irqchip/irq-sunxi-nmi.c index 21d49791f8552..83c7417611fa5 100644 --- a/drivers/irqchip/irq-sunxi-nmi.c +++ b/drivers/irqchip/irq-sunxi-nmi.c @@ -187,7 +187,8 @@ static int __init sunxi_sc_nmi_irq_init(struct device_node *node, gc->chip_types[0].chip.irq_unmask = irq_gc_mask_set_bit; gc->chip_types[0].chip.irq_eoi = irq_gc_ack_set_bit; gc->chip_types[0].chip.irq_set_type = sunxi_sc_nmi_set_type; - gc->chip_types[0].chip.flags = IRQCHIP_EOI_THREADED | IRQCHIP_EOI_IF_HANDLED; + gc->chip_types[0].chip.flags = IRQCHIP_EOI_THREADED | IRQCHIP_EOI_IF_HANDLED | + IRQCHIP_SKIP_SET_WAKE; gc->chip_types[0].regs.ack = reg_offs->pend; gc->chip_types[0].regs.mask = reg_offs->enable; gc->chip_types[0].regs.type = reg_offs->ctrl; -- 2.39.5