Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp663518rdh; Sun, 24 Sep 2023 06:41:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeNm//sgLdy/JzcMA5OrzK1r28A6GznHfy4hJu3WsjNlwyEmMbGrQ13B7cXWeyq3FBBuc/ X-Received: by 2002:a05:6358:c1d:b0:134:e603:116e with SMTP id f29-20020a0563580c1d00b00134e603116emr5399463rwj.6.1695562869859; Sun, 24 Sep 2023 06:41:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695562869; cv=none; d=google.com; s=arc-20160816; b=1C5vxwLfPTHrju2Ql7quxcQxmbz/pR2Iswkz2+oPaARzZbZcbYvg9+smxpnleqFy2A OmGlK363dCLeOxWY7ONi+jvzW3N7949SSGT+tvlZiz5kNR+cF5JqnZBc1ubiLKLZhMy6 DyOXYdCSlnuS4OYCFcu2cuJt8gFlvufxWOFNAP6jjq76ddS6GWR03F5LQ8lUwaN0icO1 92tWn51LahflTvbkQIbl1AV2sSE+mV1Z4stqHSIvDpQVjGq8fTwxEAjkH2/z0daF87eb qaG8+NmVyOnSF0e7dZWsFu42oK2crUvwchQQkaVBNxgACk7B9kg2O7KXP+RmEKe4V0jo Nf1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=uhIVsE+ib8b0OcLzP7C28dZ20AkkqV+wYbZP9GhznoI=; fh=iztwNRZsoLJQSXr7Zomwi3gurFNjhkBf6qkkdVRttVc=; b=wwQ6JrWS4UM4T0R2AXQqcn4FRcIwQvCNYRo87kHkV5rqbbtIpB3zEeCn2lTC5g4/ea DOCjYpRIIPI/Aesglbs4JI3HkAUdDoEPG6Jmg1KX9thKw2SCvNqkgDI0OpENcVRtN2Pz JEv3lom2ymvQjG/BaadtWSJ2HHcWva/Yy2V5L8k+1qVKOzoqEwmJw50sWinzE7F4TtOD gVaZbpTXys0vfCkAMqp+yPBPNx3kz2UxZlG54nT9JA3XwQYrQkKxr7IJMSyOv9hpz7Ok zmTc5Qrnxgw05YpAPDnz8ABhCkYA7egPqYQkUOfXmruUKjeFoibunBQDykQPMfXGazYk O52w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="U/PBlAYY"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id e22-20020a62aa16000000b0069100706960si7544489pff.116.2023.09.24.06.41.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 06:41:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="U/PBlAYY"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D563B809B77F; Sun, 24 Sep 2023 02:31:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229508AbjIXJbW (ORCPT + 99 others); Sun, 24 Sep 2023 05:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjIXJbV (ORCPT ); Sun, 24 Sep 2023 05:31:21 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F879FE for ; Sun, 24 Sep 2023 02:31:15 -0700 (PDT) Date: Sun, 24 Sep 2023 09:31:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1695547874; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uhIVsE+ib8b0OcLzP7C28dZ20AkkqV+wYbZP9GhznoI=; b=U/PBlAYYJf1FRVGWMJTshREY+NzD6WjH7rNSSYp0LbXPPfiBMT7A5lN2B8bPG5NouSugzS 2/YI66K6wbP73w6c6v0WYEGhMO1WrhDDtgp0L50K86FedFviTAvCNQ2ZB8Fb8I/PI+NSUm dPfvBLtv7yX/K/2iT5fK5PbQ6syf96A/FMNQpl8Opk5dN4uMzOAaxp25nkVCFQHY5D47Lu dFOLvov9d2pF7p15pu/nHKTaNE3kc3sffnW/kSMcLr9tbT36fQl3C8pudp1ZPdO5q1ZZmb bN4ebuop6edPGUJXEh4rn2YmnEI37cawzFZuAJ6SdSNpdKTm2JRjhO6RS0B+Rg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1695547874; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uhIVsE+ib8b0OcLzP7C28dZ20AkkqV+wYbZP9GhznoI=; b=XXk12dLav9cFryC3S6+GGdIVzw8dYg2wrFGWpj6I5ci176Q6qaW8eajxNVfyHWuyNRKLA7 soLCGU2Ryo0DPzAA== From: "irqchip-bot for Biju Das" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-fixes] irqchip: renesas-rzg2l: Fix logic to clear TINT interrupt source Cc: Biju Das , Claudiu Beznea , Geert Uytterhoeven , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20230918122411.237635-2-biju.das.jz@bp.renesas.com> References: <20230918122411.237635-2-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 Message-ID: <169554787327.27769.4173063850512079064.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 groat.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 (groat.vger.email [0.0.0.0]); Sun, 24 Sep 2023 02:31:25 -0700 (PDT) The following commit has been merged into the irq/irqchip-fixes branch of irqchip: Commit-ID: 9b8df572ba3f4e544366196820a719a40774433e Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/9b8df572ba3f4e544366196820a719a40774433e Author: Biju Das AuthorDate: Mon, 18 Sep 2023 13:24:09 +01:00 Committer: Marc Zyngier CommitterDate: Sun, 24 Sep 2023 10:18:19 +01:00 irqchip: renesas-rzg2l: Fix logic to clear TINT interrupt source 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: Geert Uytterhoeven Reviewed-by: Claudiu Beznea Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20230918122411.237635-2-biju.das.jz@bp.renesas.com --- 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 4bbfa2b..2cee547 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); }