Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp518674rwd; Sat, 20 May 2023 01:47:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Y3PcemH3rKRcuU3effEEiUAa/WufyeZkcviPXV60NRVkkGnq/20hU7GJpjWoczoj1Th4u X-Received: by 2002:a17:903:2444:b0:1aa:d292:3814 with SMTP id l4-20020a170903244400b001aad2923814mr6130077pls.67.1684572468849; Sat, 20 May 2023 01:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684572468; cv=none; d=google.com; s=arc-20160816; b=D9CWjOZjXU5DEESe/hZYIOsMe1wylhtgpyQfFrM6iSz4pvTyYA0cO025+va2znLPtA 6NTMigfBLWu5YVHGJqoMt0XndPDDNjGy5sSV3cAAP0sf7oW+Mv3KCfoGLjIKDyEC2t/3 AORtqv0FUk6laZfxmrv2EuXBcvFJvd2B40cljOrnVi8EVqHcbH1YruNHkC2IXVTK+sL2 4svBF1NY8cE86EziJRKV0ME2yz25xT4ZbCm6CIXIAsAAHNf2TUpAl97VTC2xBn04sDgT JE6GL3FITefulBpvXdW+iLUQYLZsbr61oQ62mf8fgMuHBpbQxUbceM9Tjsw9W6GW2exn WF1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kgAqhTY5L6UEYXqv4DeXxnjlnAyYXEcCFl4mBiBsywo=; b=MZn1JYDdHGCVvKP0QIOIB/sjHoVEn017aRgU5OtUiGvFj4GanuOQHNZnAb1kGPTYTq eFaLyIBiSGStWSgM1NZas9WQ6fUX568TDjLUuMYUW5VwtVv3vDzntRerIt/fRv3QjLwy uVS6co4/L2qffBcAkTvz8eIc9QKySc4GUMHMO4DYoUA1NwxfBb22p3YaQTqfCY7rpqlC 0z17SQp5xtUYZ3dGqyC6zHLSHarvcRmpZw9P6waW+BY0QrBoBHkMui3MLazfTiPX8avk uX076mKm/WOkIdkbSBUv74f2jDAqOektX+Djw7DPv9iqY0q+vv6oaRIJ3tzgXijJQlTl VgnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ijwwa9nw; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ju9-20020a170903428900b001a81741ef8dsi949419plb.54.2023.05.20.01.47.36; Sat, 20 May 2023 01:47:48 -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=@kernel.org header.s=k20201202 header.b=ijwwa9nw; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231264AbjETInz (ORCPT + 99 others); Sat, 20 May 2023 04:43:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231240AbjETIny (ORCPT ); Sat, 20 May 2023 04:43:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B36E4AB for ; Sat, 20 May 2023 01:43:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 43A3A610D5 for ; Sat, 20 May 2023 08:43:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A31B9C4339C for ; Sat, 20 May 2023 08:43:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684572232; bh=q8wzoly7YJd3wL9q5vpF3c1DGI0d06QhOhge2JVJV5U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ijwwa9nw0pjTSuZ7q/bshHkMKD5QlO5fINK6ccVvDAjoWCNALzzCD/XYxT8NR/f/l D52pipde/es6WfhZqeA3/i0U6WK94+1Fzqdi+Jo1QQBxSnMW6oMqmc89g6UU9XQWE3 LRwf1zqujrnLyu9o+ni1TBNhclvAtyU/B4DBs9xrdhjYA7zx2xfu36We+a+chVKzGT piWQoAmEM8RqOavzbz3GclquTdAU7fvI7BZ/jNUH5XgtJ5keJnv/A2Gxt+sHkJyjza fqrknfT+Cmr4euWcx60uVv1Vjv0tPrUMFISo5ZmuefW/I2lrOhKWgm/qU9ZPqb9jkC sSgZ4LkR79hfw== Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-510d8b0169fso5489206a12.1 for ; Sat, 20 May 2023 01:43:52 -0700 (PDT) X-Gm-Message-State: AC+VfDyBNi2rm6cQEsEeYEkxnBnvEqxqcBwDU9q8tkuKLEdrZ1CtD+YM m0kttXlUslaAOEpZfAs5dFoYmra0X3qbTKz6vCQ= X-Received: by 2002:a17:907:94ca:b0:94a:44ef:853d with SMTP id dn10-20020a17090794ca00b0094a44ef853dmr4504939ejc.68.1684572230928; Sat, 20 May 2023 01:43:50 -0700 (PDT) MIME-Version: 1.0 References: <20230520063818.27208-1-lvjianmin@loongson.cn> <20230520063818.27208-5-lvjianmin@loongson.cn> In-Reply-To: <20230520063818.27208-5-lvjianmin@loongson.cn> From: Huacai Chen Date: Sat, 20 May 2023 16:43:39 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V1 4/4] irqchip/loongson-liointc: Add IRQCHIP_SKIP_SET_WAKE flag To: Jianmin Lv Cc: Thomas Gleixner , Marc Zyngier , linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Lorenzo Pieralisi , Jiaxun Yang , Huacai Chen , loongson-kernel@lists.loongnix.cn, Yinbo Zhu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Jianmin, On Sat, May 20, 2023 at 2:38=E2=80=AFPM Jianmin Lv = wrote: > > From: Yinbo Zhu > > 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. Maybe using LIOINTC instead of Liointc/liointc is better in commit message. Except this small issue, for the whole series, Reviewed-by: Huacai Chen > > Signed-off-by: Yinbo Zhu > Signed-off-by: Jianmin Lv > --- > 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 lo= ng size, int revision, > ct->chip.irq_mask =3D irq_gc_mask_disable_reg; > ct->chip.irq_mask_ack =3D irq_gc_mask_disable_reg; > ct->chip.irq_set_type =3D liointc_set_type; > + ct->chip.flags =3D IRQCHIP_SKIP_SET_WAKE; > > gc->mask_cache =3D 0; > priv->gc =3D gc; > -- > 2.31.1 > >