Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp513030rdb; Tue, 19 Sep 2023 02:09:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGDLVIcS5DyqnS8mD+FCRU2Xn+EHQ42FUWmeuAlMDzmQo8uf2HNkM80CT1RTrIWRozDIOMe X-Received: by 2002:a17:902:d510:b0:1c3:1167:26e4 with SMTP id b16-20020a170902d51000b001c3116726e4mr14420318plg.60.1695114540513; Tue, 19 Sep 2023 02:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695114540; cv=none; d=google.com; s=arc-20160816; b=uWaUduJIeJ8Lm5wk+64EawJ6m0d2RAJix9ewCeohK6LMFjbkmf8CRH7jOpn77C4q0p rLTlerU0lzR4HCZPKI32Ka4JbbzEcFKxB6ENcT9NOSgfgkJA7/Py5xREdOZCedIOuWDz /Uxczq1KkdN6ARHMtUG/Qd0CZItmtjXkPtl5NTZ9aqDvG/+ESxaq7OM4RMT2CgRGlVBL PxYkw0MlQcXSzAUR2BkxSrdEwh/9tV+mSLfzAqIJYlydEzZ8R3ZlPPWo+HTAY874+mNl iyKZsqHDIxxN1fFLshGS9JMnhWgrvYGLwly81iiviU0MnxOlV49L0Yc7qkeNiBSpu4ey gYSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Ik5zhHi7QmMom+9ftqoYhZzINI56OUYiaj8dVmVyf2c=; fh=x6HoDiKbbL9UtbpGE663o85ZlhZSuDQMLqH1jv8UXFg=; b=NeEXcCLmDEdH2gjQkbaCifOXeaTwv2kDLIlmF6gKyE7a7eWnX++zZMCwLuqECJA+iI v5tTbzwObBRr0pooVL8k5E4UBIdOVrG4MiE/O1UWdRTDoNIbZAtrTp9w6EeXd1O/6RMe Dh0LSUJ9rIgAjyZ5d5+ihyInwJcSKhGyJKV9OFagoKAfpxVJL/AdEWfmDFnhI5Cc7WIr 4A7IZ9ILYhC5lDcfCo/SHKoG3yaKJdlK7fTdqMllcKNzsxaX23cEsHN8j2SmszVXi8A6 UO8AjIH16QEYrXosA4Aa+Ecl0QbV+utQNeroW1NadeXFJSIWzIhmoJTygq/gL1g+jmML dh6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=N2MGvZ0w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id h12-20020a170902f54c00b001b9ea0f0e8esi9901167plf.650.2023.09.19.02.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 02:09:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=N2MGvZ0w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 91D68801F9A7; Mon, 18 Sep 2023 22:57:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231214AbjISF5D (ORCPT + 99 others); Tue, 19 Sep 2023 01:57:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230522AbjISF5B (ORCPT ); Tue, 19 Sep 2023 01:57:01 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EA5210F for ; Mon, 18 Sep 2023 22:56:55 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-530fa34ab80so4161381a12.0 for ; Mon, 18 Sep 2023 22:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1695103014; x=1695707814; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Ik5zhHi7QmMom+9ftqoYhZzINI56OUYiaj8dVmVyf2c=; b=N2MGvZ0wlVDqdq5fPZ6gLJkG00j9sXn/as5TWvshpL6aderBsyKiC6rwRTdUd1KDaP Ouf45GULPBdRL/0s/oiHB3trwIdFtgEx36cDAg0FQ+P6aq9/BYn1JjksQixwpaRz3dnZ ReOhRaf8BnjTdfU7jUUiFeH457pdJoEiGTJUw7KJW0z7rYJozUwZlCUy6GPP3Xizo/tn uU0pANmHM2oGCybjo9z7aH87yZ5qtjiQ4eJpgI5yyvwaqrJdSTcPST6iJt+gOOH/Wr0V FsnKW3CW1M01Hs4h3zShxrG6OXgbkr3MoMnPDEotg9ZY18LPmlIp0JWx0YTwLOkwaRVF KCAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695103014; x=1695707814; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ik5zhHi7QmMom+9ftqoYhZzINI56OUYiaj8dVmVyf2c=; b=NKYXyadTGt+tY1/R1Tcbhr9ppMZiDExSZOGPzAXe82OH6EuvutM1c+CzkY9lST8w35 CCCjF+VjV1zOte+MWnNxjWP3NWC9vBnu/QaVCBK6xxKX+m9txfvjm/PMxZSgEY/UCFpf 1sNqwEe82V3Yk+81vJe3N76Ml0SFrVUxaM6XuPUcF6zIDqjF9e8S6wsSfoICcTt4/kmm WWsZHBpWfvVjyOUMznmIH2EuCKV9rRdpERJQ3A3/x2N08hqtxjz2I4xWeFyTK1l/bKUT GXP8L3MIkguFyZIoNQzXnzZSuIebUQT4dKF74As66xJVTCKNgX1KF59mqabg7FIka6f/ Rl+g== X-Gm-Message-State: AOJu0Yz7bzSEAA3gTufWUQxiDFUxy6auqSPxIHVaKYsbsljs4SuL53Bs BttOmMd/ZQb4Twe2RMZb9i3ekg== X-Received: by 2002:a17:906:112:b0:9a9:f042:deb9 with SMTP id 18-20020a170906011200b009a9f042deb9mr2711982eje.19.1695103013717; Mon, 18 Sep 2023 22:56:53 -0700 (PDT) Received: from [192.168.32.2] ([82.78.167.145]) by smtp.gmail.com with ESMTPSA id gv23-20020a170906f11700b0098ec690e6d7sm7317180ejb.73.2023.09.18.22.56.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Sep 2023 22:56:53 -0700 (PDT) Message-ID: Date: Tue, 19 Sep 2023 08:56:51 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 1/3] irqchip: renesas-rzg2l: Fix logic to clear TINT interrupt source To: Biju Das , Thomas Gleixner , Marc Zyngier Cc: Lad Prabhakar , Claudiu Beznea , Geert Uytterhoeven , Biju Das , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org References: <20230918122411.237635-1-biju.das.jz@bp.renesas.com> <20230918122411.237635-2-biju.das.jz@bp.renesas.com> Content-Language: en-US From: claudiu beznea In-Reply-To: <20230918122411.237635-2-biju.das.jz@bp.renesas.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 18 Sep 2023 22:57:05 -0700 (PDT) On 18.09.2023 15:24, Biju Das wrote: > The logic to clear the TINT interrupt source in rzg2l_irqc_irq_disable() > is wrong as the mask is correct only for LSB on the TSSR register. > This issue is found when testing with two TINT interrupt sources. So fix > the logic for all TINTs by using the macro TSSEL_SHIFT() to multiply > tssr_offset with 8. > > Fixes: 3fed09559cd8 ("irqchip: Add RZ/G2L IA55 Interrupt Controller driver") > Signed-off-by: Biju Das > Tested-by: Claudiu Beznea Reviewed-by: Claudiu Beznea > --- > drivers/irqchip/irq-renesas-rzg2l.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/irqchip/irq-renesas-rzg2l.c b/drivers/irqchip/irq-renesas-rzg2l.c > index 4bbfa2b0a4df..2cee5477be6b 100644 > --- a/drivers/irqchip/irq-renesas-rzg2l.c > +++ b/drivers/irqchip/irq-renesas-rzg2l.c > @@ -118,7 +118,7 @@ static void rzg2l_irqc_irq_disable(struct irq_data *d) > > raw_spin_lock(&priv->lock); > reg = readl_relaxed(priv->base + TSSR(tssr_index)); > - reg &= ~(TSSEL_MASK << tssr_offset); > + reg &= ~(TSSEL_MASK << TSSEL_SHIFT(tssr_offset)); > writel_relaxed(reg, priv->base + TSSR(tssr_index)); > raw_spin_unlock(&priv->lock); > }