Message ID | 20230626172608.2978505-1-samuel.holland@sifive.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7648111vqr; Mon, 26 Jun 2023 10:43:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6o+uUFpB/TmBIpUEwjzxZY9OpMKluqgRXfNbdrnyd3zF2WI2kW6yyQXFSFG2R+lTVS/0H9 X-Received: by 2002:aa7:db8d:0:b0:515:3103:631e with SMTP id u13-20020aa7db8d000000b005153103631emr18790765edt.25.1687801385872; Mon, 26 Jun 2023 10:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687801385; cv=none; d=google.com; s=arc-20160816; b=ut+bRAp2fyXcVN03Q+KPQJfOM1ZHEwaQrSsKFr2zmRjOFNO1GDx4blVNyL9jjlyhlJ EmMwEWUlyBIGrYXzOVKNtqJWGH0PduO+48FIYhdmoz5CKk0+8SUO+qN9GtGUwmPfD7NY 7TTLXk35cDLGGAT7f6VX5vxj8m8JMpjv0r5jEPIyQkmgOUmj/kCcb5/C3SZUDjyXwS3d FzHqxXu1iZfhQC0PSJPyMfz8E0ysLHGfjRBDU2V8+e6okqy2PFGzbKZ0aKvdQXO5WLbb MMlh7Xf/7fzbuq/BRuBQYQN5vb3G1aRZ7mCeC8lE2rvNNXG6mLolu7eRowtOk8oJuSOK sHDw== 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:dkim-signature; bh=jAa9/qyqoIOUnYhC99LNfoissbeamAdrpMuCz28sW8s=; fh=/8Uoa7g4UwO7n28Fu1BX5dKzcBsQ7ow6AljmkWMzqWQ=; b=A6cJXCGPg4ik2Vi3TynlYbmfSPXU7X1UvWR2pdp4EQpoG8Efr0f2ulrIOrd1eAZDua hiLAQu2upnBoTb44/dTdA3WBJ2qlaj7115062gNh+CIXBSSDEnnyYBSyW2/iXjQwmQZM MI88YObeVXGApto0nE/c3CK76fXnkAoG3Q7svqfurGr+8LMYOUS2thMbcNWXgZy5Q8US uosB6RWeX0410qu6l8czzZp8QMrRd8YwWko2Ep/5E/nNRaN0DzwMobpB8RjGGP35lce3 Jn54KrLCgF92OMSlbxurMPgZ/J8KQqEu4qkdlNZ2s/p2SO3/ag35l1/NiJKtZ4ZNIYj+ d0Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=H7zijVZ9; 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=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020aa7d1c6000000b00516333867fcsi3001707edp.593.2023.06.26.10.42.41; Mon, 26 Jun 2023 10:43:05 -0700 (PDT) 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=@sifive.com header.s=google header.b=H7zijVZ9; 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=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230016AbjFZR0P (ORCPT <rfc822;filip.gregor98@gmail.com> + 99 others); Mon, 26 Jun 2023 13:26:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjFZR0O (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 26 Jun 2023 13:26:14 -0400 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12AB7AB for <linux-kernel@vger.kernel.org>; Mon, 26 Jun 2023 10:26:13 -0700 (PDT) Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-3457cba78f3so14844575ab.3 for <linux-kernel@vger.kernel.org>; Mon, 26 Jun 2023 10:26:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1687800372; x=1690392372; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jAa9/qyqoIOUnYhC99LNfoissbeamAdrpMuCz28sW8s=; b=H7zijVZ9COkKnC8EPRrq0SG3bgmwwD4JD/ym7AGril6FAWmKwYPiTnmRm+uTCXiYrV 3Cnd/INrDqhDJQToc37RsQd2bw0lUmbz+L+2LIur1mo3m0/akE1hqdtuxAyNSTPgqyD6 Vyh/o6lP7U5Hh0EVqcqKGizcYaT9V4qIO6tg06VvRIMpBBaEYlQwLXZfbjOGfAteYyuG imlXyaxx5bK9XHbXUYCPhZsaXZri/2yMPFRMyTbKAjTGKAY4H5H5Y15qjeILlxgzn4fD 3QpHy9j4aDe8fF+A+ja630+GEGHBJ7Svrc4nFrTZ3ZM+Fk8bmf+kVQjFHeNEtDpFG41H ViFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687800372; x=1690392372; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jAa9/qyqoIOUnYhC99LNfoissbeamAdrpMuCz28sW8s=; b=igByy/ZI/B5ENEYYVml4evCfy8xBprzWcHmWRJCEGqgobooj7B197GUmlud4PYuvgM fXu19lOfvG4yLnlOX1BvhE0oolU63Ti5RN+KYWCBq0ZpNFgG+O2CzUgJz3NwvXyl+G3q 8jhJlNX//aJQRiBo/F8ET4yW4ViNfvfOXQjbyugNpQrkB5/mOk/F5WVC0OFTjgJpdkfU z3+3VBLk/2Xley9bnR8AgaPIBSXtZ42CaL5RCDJQuSE0Ezlvt3jfsjrR9n5aUvNr9S7i ixQbgOpQnJQfFbHBtzcBmcz3qxvm/62xc0m9TsF+ssCrQ5nECUotTjBxW0S3b7aotXmp 65Kw== X-Gm-Message-State: AC+VfDyyGnSZqgp1yBQRG6EvznFtwwf7fSQGLzFpBI3OiAq/ZAfQHVqZ PXaGb7ah2G/swKROACsMaTzliw== X-Received: by 2002:a92:d30e:0:b0:340:72d1:69a with SMTP id x14-20020a92d30e000000b0034072d1069amr31425660ila.28.1687800372473; Mon, 26 Jun 2023 10:26:12 -0700 (PDT) Received: from sw06.internal.sifive.com ([64.62.193.194]) by smtp.gmail.com with ESMTPSA id u15-20020aa7838f000000b0066a6059d399sm4026648pfm.116.2023.06.26.10.26.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 10:26:11 -0700 (PDT) From: Samuel Holland <samuel.holland@sifive.com> To: Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <brgl@bgdev.pl>, Andy Shevchenko <andy@kernel.org> Cc: Samuel Holland <samuel.holland@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Paul Walmsley <paul.walmsley@sifive.com>, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH] gpio: sifive: Support IRQ wake Date: Mon, 26 Jun 2023 10:26:08 -0700 Message-Id: <20230626172608.2978505-1-samuel.holland@sifive.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769788025737838930?= X-GMAIL-MSGID: =?utf-8?q?1769788025737838930?= |
Series |
gpio: sifive: Support IRQ wake
|
|
Commit Message
Samuel Holland
June 26, 2023, 5:26 p.m. UTC
Each pin drives a separate interrupt in the parent IRQ domain, so there
is no need to set IRQCHIP_MASK_ON_SUSPEND.
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
---
drivers/gpio/gpio-sifive.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Mon, Jun 26, 2023 at 7:26 PM Samuel Holland <samuel.holland@sifive.com> wrote: > > Each pin drives a separate interrupt in the parent IRQ domain, so there > is no need to set IRQCHIP_MASK_ON_SUSPEND. > > Signed-off-by: Samuel Holland <samuel.holland@sifive.com> > --- > > drivers/gpio/gpio-sifive.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpio/gpio-sifive.c b/drivers/gpio/gpio-sifive.c > index 98939cd4a71e..c2653313f3a2 100644 > --- a/drivers/gpio/gpio-sifive.c > +++ b/drivers/gpio/gpio-sifive.c > @@ -150,6 +150,7 @@ static const struct irq_chip sifive_gpio_irqchip = { > .irq_disable = sifive_gpio_irq_disable, > .irq_eoi = sifive_gpio_irq_eoi, > .irq_set_affinity = sifive_gpio_irq_set_affinity, > + .irq_set_wake = irq_chip_set_wake_parent, > .flags = IRQCHIP_IMMUTABLE, > GPIOCHIP_IRQ_RESOURCE_HELPERS, > }; > -- > 2.40.1 > Applied, thanks! Bart
diff --git a/drivers/gpio/gpio-sifive.c b/drivers/gpio/gpio-sifive.c index 98939cd4a71e..c2653313f3a2 100644 --- a/drivers/gpio/gpio-sifive.c +++ b/drivers/gpio/gpio-sifive.c @@ -150,6 +150,7 @@ static const struct irq_chip sifive_gpio_irqchip = { .irq_disable = sifive_gpio_irq_disable, .irq_eoi = sifive_gpio_irq_eoi, .irq_set_affinity = sifive_gpio_irq_set_affinity, + .irq_set_wake = irq_chip_set_wake_parent, .flags = IRQCHIP_IMMUTABLE, GPIOCHIP_IRQ_RESOURCE_HELPERS, };