From patchwork Mon Nov 28 11:53:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 26683 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5609627wrr; Mon, 28 Nov 2022 04:03:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf4XRRrHgEqRaGnTyd1t11pAcEQtxs4NjP87rIvWQCpQymc4X2bkSaban2q4T1B67cOWK7Fe X-Received: by 2002:a17:903:26cb:b0:188:8dc6:4eae with SMTP id jg11-20020a17090326cb00b001888dc64eaemr44071797plb.2.1669637036055; Mon, 28 Nov 2022 04:03:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669637036; cv=none; d=google.com; s=arc-20160816; b=LVS4x0exHca/GD+59Yd0KYNZOOnHBtsfRICMhu6enUSIwB3jgSdfj9UawIhkdpIwZO tDZowKPDqbD34byp+NTvy2TFjN46PcgNZfgtcX76uAqNhIhWBCAc7OvgeqXblPx6p1Xg TIwLqznpA3VGeIxT3bxpKhP8UTuXYVC+7NdRhdX4C0IdfFNP00eHCTyaMrskOnoFtoVl qetohRCdlKdifpSgQ1DrkSKNE0AWA0sPtgdRVDZ1Uue9edci/4mJOygkEBEVzRxb6zKp t7kO52av747Qy3uy5qsBazVpABJHIvUUsZhByD5Zr1NSEm5z0p1OlFLOwdcKoaY2zRBT 278Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=J7Dj4YRn/F1RC7Yk4YJJYULL90/HqhKhsQ2qPWq7Zzo=; b=hJfgLLKFEe99t8EOLJSSSPUrqBFr96cgdZye2ZVgCJpaS9XEvGPBJ9tsH6KrfzjQ3c UOAADHzkd8BkxVRGQ6UFwOl+mGRhSvXmNgqwH4ft785hzhz9gTcUbs1VK9IPCYa4Ph5b lQm4mr7/u2agjyn8CcI+ZwHWOTVKr07GQL2wNIOr7SEl5NxkXWEP3po2gnoWgwfr/w8P 3FKH3b3ws/pBy5z31lwXdnywsi/NYI0J3mbTTEA6VJTng180sqLjWBeOKZu5r2VooQuB +ZfUrgyYi5fTsIN20kAHBLWL/YdHwPqeBLPyx93sKRA06P+JDMQTt1gs/FjE7au2bpGt Gm0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=bdVhoYal; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h4-20020a636c04000000b00461bf5f86fdsi12379112pgc.403.2022.11.28.04.03.37; Mon, 28 Nov 2022 04:03:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=bdVhoYal; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231374AbiK1LyQ (ORCPT + 99 others); Mon, 28 Nov 2022 06:54:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231304AbiK1LyC (ORCPT ); Mon, 28 Nov 2022 06:54:02 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64608BE24 for ; Mon, 28 Nov 2022 03:54:01 -0800 (PST) Date: Mon, 28 Nov 2022 11:53:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669636439; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=J7Dj4YRn/F1RC7Yk4YJJYULL90/HqhKhsQ2qPWq7Zzo=; b=bdVhoYal1btiDi1BptSWh3gjNbTxnasoVQJh7zDMSv8UsIdqwYnxwS8zDlhNul9f9ycjC3 ZRQItryCUsLtctS9+dCnO/a2JOpyBNQQ4lqgc4RgiJ1d4NfyNj6MCmwgnf5lQjcxV9UkSq 3lyXcpep8KinPeBopN5NWACPmRYBmswnwumiAtbYgEqqBiWCvJ+UbmqAkHycthTQKXellM zG0heZqxvyNOv3LwLrHVvNJCHbepPok5ywrXWsgo85/WKY4KGmMy0cC2fjENm5YaItf6Mc UqpJXg9OUhWB294+xz69qQeW3v7Y/fPMjrpYEdqE0+lzlT+bn8e+zLto7b9qTg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669636439; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=J7Dj4YRn/F1RC7Yk4YJJYULL90/HqhKhsQ2qPWq7Zzo=; b=7iXMX0Fv8iTqfeMyuA+BcfvUXOfoK5ruXkzH+yEygzMciMDAyxp/hNZXC6sg1G/TZVssCj TRRADpRncnT1eKDA== From: "irqchip-bot for Samuel Holland" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip/sifive-plic: Support wake IRQs Cc: Samuel Holland , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20221126194805.19431-1-samuel@sholland.org> References: <20221126194805.19431-1-samuel@sholland.org> MIME-Version: 1.0 Message-ID: <166963643864.4906.15315016442741987261.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750591284739208231?= X-GMAIL-MSGID: =?utf-8?q?1750741325039729001?= The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: f5259b045c19f6e997bd12d53a5f76663537c1fd Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/f5259b045c19f6e997bd12d53a5f76663537c1fd Author: Samuel Holland AuthorDate: Sat, 26 Nov 2022 13:48:05 -06:00 Committer: Marc Zyngier CommitterDate: Mon, 28 Nov 2022 09:44:24 irqchip/sifive-plic: Support wake IRQs The PLIC does not define any special method for marking interrupts as wakeup-capable, so it should have the IRQCHIP_SKIP_SET_WAKE flag set. Signed-off-by: Samuel Holland Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20221126194805.19431-1-samuel@sholland.org --- drivers/irqchip/irq-sifive-plic.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c index 2f47848..ff47bd0 100644 --- a/drivers/irqchip/irq-sifive-plic.c +++ b/drivers/irqchip/irq-sifive-plic.c @@ -187,7 +187,8 @@ static struct irq_chip plic_edge_chip = { .irq_set_affinity = plic_set_affinity, #endif .irq_set_type = plic_irq_set_type, - .flags = IRQCHIP_AFFINITY_PRE_STARTUP, + .flags = IRQCHIP_SKIP_SET_WAKE | + IRQCHIP_AFFINITY_PRE_STARTUP, }; static struct irq_chip plic_chip = { @@ -201,7 +202,8 @@ static struct irq_chip plic_chip = { .irq_set_affinity = plic_set_affinity, #endif .irq_set_type = plic_irq_set_type, - .flags = IRQCHIP_AFFINITY_PRE_STARTUP, + .flags = IRQCHIP_SKIP_SET_WAKE | + IRQCHIP_AFFINITY_PRE_STARTUP, }; static int plic_irq_set_type(struct irq_data *d, unsigned int type)