Message ID | 20230614111426.5545-5-lvjianmin@loongson.cn |
---|---|
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 k13csp1169791vqr; Wed, 14 Jun 2023 04:29:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Y7L60Nfaw5pYWHJM+YeMnk5bgYUlhLuPLxJTKcDxQuAUOwYJOcDCtLxclRGHVWnOjyrFj X-Received: by 2002:a17:903:1247:b0:1ac:83d1:9269 with SMTP id u7-20020a170903124700b001ac83d19269mr13144080plh.16.1686742145967; Wed, 14 Jun 2023 04:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686742145; cv=none; d=google.com; s=arc-20160816; b=L/3kvQtEfD/MiC0Wuntc+Vgv1lTxNQbrPDm8hz1SOsh6BDEzk+n74NR/x6Z3sNLE3z 3yzeHzzF2BrghhBjfcCp9wBLlko7ezs8dwgmvc88oMv1ZXVmjGqsXEmaPXHqFQm8QVS0 xuANVcZz8pNECJcrBd4Q/XbHlR15Ffne1LUpz9RDgzA9guNFA3Vcu1mtStw5DC1JgX9z 955qIS+/QEPpjFM7MiKcBhS7+lKWp9IwUwK8bL4ir4HvXYBk+DDL5rLz2QZLBVrRxAdI zoloPZCYM57O0swIoyZMtYDgr7QwZW8MVA/ZC3xzbTpnUDhYcL+iWjoaaiYnF2i/bnKR QaLg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/3aKiemlYayG10N/6o2Jo4eIPgYwBtXA5PbKIj6gqt4=; b=xNj3RkRp7GUotS/wW50hwT+muEtSfzsm1SyiHtdtDELOpNaxhm4+pKpUJiPlxDNB5Z LQugH+L3L3FB+q3gLnDtyE+kk5qcymbW7I4quf1/cum8UdydTOxwaVKJxKctmHyo/Yru aSmFknugub9GBqQEdX+t7jtNmdRfy1pgAKzQ4Usav3HC4TZo0sNSZp0aF44hLN4PSnB2 JmxbRdIR0Qd6Y3w3UQ9vMDishBFDBReOKTWKiQ7GGDw+tmw2FCxNtXx9+5rKGRc8upWE eRABgMj/gS+yacTsVDpNLdhfBp48ZRVHPpNWm+/2G+6W3XWLyHOzg85l7DMs3dulWGCh b0jA== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c4-20020a170902b68400b001b3af7e375fsi6714908pls.559.2023.06.14.04.28.49; Wed, 14 Jun 2023 04:29: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234992AbjFNLOm (ORCPT <rfc822;n2h9z4@gmail.com> + 99 others); Wed, 14 Jun 2023 07:14:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235961AbjFNLOc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 14 Jun 2023 07:14:32 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 46F1A1BF6 for <linux-kernel@vger.kernel.org>; Wed, 14 Jun 2023 04:14:31 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.116]) by gateway (Coremail) with SMTP id _____8DxSuoUoYlkTxoFAA--.10737S3; Wed, 14 Jun 2023 19:14:28 +0800 (CST) Received: from loongson-pc.loongson.cn (unknown [10.20.42.116]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Bx+OQSoYlk_IkaAA--.10128S6; Wed, 14 Jun 2023 19:14:28 +0800 (CST) From: Jianmin Lv <lvjianmin@loongson.cn> To: Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <maz@kernel.org> Cc: linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Jiaxun Yang <jiaxun.yang@flygoat.com>, Huacai Chen <chenhuacai@loongson.cn>, WANG Xuerui <kernel@xen0n.name>, loongson-kernel@lists.loongnix.cn, Yinbo Zhu <zhuyinbo@loongson.cn> Subject: [PATCH V1 4/4] irqchip/loongson-liointc: Add IRQCHIP_SKIP_SET_WAKE flag Date: Wed, 14 Jun 2023 19:14:26 +0800 Message-Id: <20230614111426.5545-5-lvjianmin@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230614111426.5545-1-lvjianmin@loongson.cn> References: <20230614111426.5545-1-lvjianmin@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Bx+OQSoYlk_IkaAA--.10128S6 X-CM-SenderInfo: 5oymxthqpl0qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj9xXoW7Jry3XF48ZrW3Wr4UtrW8GrX_yoWkXFg_WF y7Jwn5CryIvrsIka4xCr4Utr1F93y5uanrua1FvFs3Z348tw45Cay3Z3ZxGFWUKryjvF93 Kr48Wr4rCrWxtosvyTuYvTs0mTUanT9S1TB71UUUUj7qnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbfAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JF0_JFyl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv6xkF7I0E14v2 6rxl6s0DM2kKe7AKxVWUAVWUtwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYI kI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWrXVW3 AwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI4 8JMxkF7I0En4kS14v26r126r1DMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j 6r4UMxCIbckI1I0E14v26r126r1DMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwV AFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv2 0xvE14v26ryj6F1UMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4 v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AK xVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU0XzstUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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?1768677332060613318?= X-GMAIL-MSGID: =?utf-8?q?1768677332060613318?= |
Series |
irqchip/loongson: Fix some loongson irqchip drivers
|
|
Commit Message
吕建民
June 14, 2023, 11:14 a.m. UTC
From: Yinbo Zhu <zhuyinbo@loongson.cn> Liointc doesn't require specific logic to work with wakeup IRQs, and no irq_set_wake callback is needed. To allow registered IRQs from liointc to be used as a wakeup-source, and ensure irq_set_irq_wake() works well, the flag IRQCHIP_SKIP_SET_WAKE should be added. Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> Signed-off-by: Jianmin Lv <lvjianmin@loongson.cn> --- drivers/irqchip/irq-loongson-liointc.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/irqchip/irq-loongson-liointc.c b/drivers/irqchip/irq-loongson-liointc.c index 9a9c2bf048a3..dbd1ccce0fb2 100644 --- a/drivers/irqchip/irq-loongson-liointc.c +++ b/drivers/irqchip/irq-loongson-liointc.c @@ -291,6 +291,7 @@ static int liointc_init(phys_addr_t addr, unsigned long size, int revision, ct->chip.irq_mask = irq_gc_mask_disable_reg; ct->chip.irq_mask_ack = irq_gc_mask_disable_reg; ct->chip.irq_set_type = liointc_set_type; + ct->chip.flags = IRQCHIP_SKIP_SET_WAKE; gc->mask_cache = 0; priv->gc = gc;