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 415D4C13D; Thu, 30 Jan 2025 14:00:44 +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=1738245645; cv=none; b=obWDA00dIJuhjQ7b5KO/L9XytJv0AQbMMJ7+bZILc3IhPLuxtLrQ+Afl6A7WFaPoEiw3jr2DYDKoTNbAY57+5b30Sy6k6JcDVLzRZWHae78D6CnZnjXW+zG52+DW2414xLFfXAmvK2IsutUcbboURIrE3Moszj3V6T9sr/FH38g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738245645; c=relaxed/simple; bh=6i6CqQnyDpJi0LrOUiLgcptX/TRH1zZ/3AL3tHc6ggc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ao0Tx8Fiy+OQ6k07wHxFwwX1heicyESgDv2nDVchoHjtvNZ3e15xaEU5KYfmftyqJ/p5EoD0OZrwQHE5e2ZMAKwcYoemZSVN0e74NZ5uA9+KTCG5x5ZmQI+qPHIzMCLN9xoiZ173WBH811wJpnGXvuMF5gY1mjcNkqfaE0YMnhk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=U2oidPXl; 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="U2oidPXl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6922DC4CEE2; Thu, 30 Jan 2025 14:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1738245644; bh=6i6CqQnyDpJi0LrOUiLgcptX/TRH1zZ/3AL3tHc6ggc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U2oidPXl5lpTEESWXClsxFfmXizbUWT7dq3+m2RJe1OBaId3ZBlH2FVXiaV3HmdhI l5hyWlcP5Fak3p7GW73UA8H5/aBs04rZ+m+yOT9v7yUKL9Bwl99Hef37DNwl398Ucu tlGdq/+cBOGJowrAdQrkY9txky4adz99T3tsZnZE= 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.12 12/40] irqchip/sunxi-nmi: Add missing SKIP_WAKE flag Date: Thu, 30 Jan 2025 14:59:12 +0100 Message-ID: <20250130133500.202367456@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250130133459.700273275@linuxfoundation.org> References: <20250130133459.700273275@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.12-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 bb92fd85e975f..0b43121520243 100644 --- a/drivers/irqchip/irq-sunxi-nmi.c +++ b/drivers/irqchip/irq-sunxi-nmi.c @@ -186,7 +186,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