Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp12643390rwb; Sat, 26 Nov 2022 12:36:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf4LFO5gOM1GVUkZIOz1NcxgflZLdg1NsK9CsyKlIK/HJvvSVyGSX3/wXhd4ZgqJAQCRULQl X-Received: by 2002:a17:90b:3d8a:b0:20c:4f5b:f6cb with SMTP id pq10-20020a17090b3d8a00b0020c4f5bf6cbmr53132664pjb.153.1669494988007; Sat, 26 Nov 2022 12:36:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669494988; cv=none; d=google.com; s=arc-20160816; b=pHYp9SZkCb80HLMM/fX3907yCBfKridfkQAPQtoAST3ECRX8bbgXZ8qoNbVPnV1LIU RYXPLTtFJV/H5Ik9PiZ6FH7aqFfdMiNc+e9NMeFodPZuA8wVod9yx4BruyVHJHQ7NFxb VX+DkEXM4fKoCCGzbab85OOdoKRLTu23UmHwWNGkNlDtfMjHM2JZwhCMus+hEBs7fFfP S+MthuikeBq/117yNU5Kc83zm7Saypfe3rp6Bo67SaBUPPcScGeJQfntT39iaQ4u1Fnn 882vRynfA0GYNKJTzfwcMvgOTDBKl6u2Xoay2kPfcCSJIrkAgnvH+dnIQghrDwZYi3nx CUUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=WxeQ0lAHuyYH/JvUacQCXsHoLdHh41AbK/BFWlsX3M4=; b=ZJxor9g2LPdaIZ6kC0nU0j/JnkEPBnkCe5M7cHN3Or1UnwZFy5iBaSO1sZTnBtTgqH k9spcXKOk43M0mqJKSUNE404FYWAJcMtwCwql4BvSRxc70GC4P0NBSC7657q0Q2ASaN5 0CVq+oSvhU+lcbF0DJjmawtG41LRKF7FtNNvddzUIl0ZY5pO9cN/WMZBd6UKhvN0/TbW NpCPHaFUaW7zYEF09j+k3RF/d6ZZ/HmE9Q+9TVgaQV7EBQntmU+U5RG1s657L4qpFNLz 2y6I0aoi2gDhQ19SJEfxWxh9DPHvDNIaBSPkCWXMbitS96Ncr02NcELAZhEEsKFWXiRX 0P3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=NwhVCidj; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="WUsvxM/M"; 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=NONE dis=NONE) header.from=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m14-20020a17090a4d8e00b0020af39f326fsi10602199pjh.133.2022.11.26.12.36.05; Sat, 26 Nov 2022 12:36:27 -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=@sholland.org header.s=fm2 header.b=NwhVCidj; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="WUsvxM/M"; 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=NONE dis=NONE) header.from=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbiKZTsJ (ORCPT + 85 others); Sat, 26 Nov 2022 14:48:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbiKZTsI (ORCPT ); Sat, 26 Nov 2022 14:48:08 -0500 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2D7011455 for ; Sat, 26 Nov 2022 11:48:07 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5C2E55C0043; Sat, 26 Nov 2022 14:48:07 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 26 Nov 2022 14:48:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1669492087; x=1669578487; bh=WxeQ0lAHuyYH/JvUacQCXsHoL dHh41AbK/BFWlsX3M4=; b=NwhVCidjw1PRi+08H/StL0r26ZuCW0bTNx2YKncdI 29maC4iHyIopvQL8gafncz7F8E1Gv6gksUAt1E28vD2hLLvxZFKwhTw8sIgj/BpG sOt6hYqMQcC7WLiOWimA6UMGiP28g0XJVN6BNSDCkmi/mVIj2V9WoMzfDxTIyBOg XrUiywY5fMCNC0KkztsDZbtjD9f/R4Zfn8uTjKiRfLlqYtk48QuyYYTV44YJSrkR R7FdUmEutw5XaQfU2z1j7BEkf9533qatt/cDd8MJj4Xr1jdWk8m+x+YKpr8GG884 L/8bQX94jhStL6MX7l/pJALtusdevrXJJFtO+YfUZqENA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1669492087; x=1669578487; bh=WxeQ0lAHuyYH/JvUacQCXsHoLdHh41AbK/B FWlsX3M4=; b=WUsvxM/M+de56HMHmHoc1r+qoW4Pi7goIcWptJIdnVGY1AIE3O9 evSGns24IGJRTSbFlMohg/9idV2FIvYP0TqCO990lZHR035QMrGgQfU1mw4Co/5q oaqiqYLrVZs5jlwE/caWoCrhn19tq7BVebimC6q8v4G57XLi35QkHzcclUPlTv7l +Taj4akjHTN59Oompk79Zra407yBAP2pV01OZVBnn5XKzsLTtus2FRRVWbNBlA4Y 5ymkFpNNBvEBIV8b1XzvanYPe/oslO27k5sthKxW7HIj4k/CvfnPNrXt64YzBgVl atZRoYEPh+CoHUiRlOoVF8Czjqg6MLNIhyw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrieejgddufedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeevlefhjeeuleeltedvjedvfeefteegleehueejffehgffffeekhefh hfekkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 26 Nov 2022 14:48:06 -0500 (EST) From: Samuel Holland To: Marc Zyngier , Palmer Dabbelt Cc: Samuel Holland , Paul Walmsley , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH] irqchip/sifive-plic: Support wake IRQs Date: Sat, 26 Nov 2022 13:48:05 -0600 Message-Id: <20221126194805.19431-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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 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 --- 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 2f4784860df5..ff47bd0dec45 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) -- 2.37.4