From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9A9E63E; Mon, 1 Apr 2024 16:51:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711990262; cv=none; b=ih7luCiVdcHjqo67qpmuzQ9QWtv3coIsCj+8WSNhowhN497926Q0g9a7tl5rpM7htYwchOBfr5g+vMZ7OhHtevVjjEhI+9ecsU4vVtdNLuSBcyXUWgVs6JgGwaJTPf87kHZ5KU7pSZSBlSz47GV8sOv7BZK/DVFqoLH0cHQLV+Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711990262; c=relaxed/simple; bh=dtih0+ozksseOakGBhA7/T+2YqsWQqLjZsOut7vp2XA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XYKXXKxUxlDB5Plw8Pm+gKqsGUHvdygW2sYz4PBunnA6hk5kkvYfpsxLZmwiRp14LsAbOBA388JPXKYIVz/1pD8MHeR2Smd74SOUFOoZxapFdWn9/tQqlLxsOaKBNMNe0gPfpE5oGAqGaPPdKBZzUTce4lqr9JGPNo4cQ4SuZbE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=c/WWmr2E; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="c/WWmr2E" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A1BFC433F1; Mon, 1 Apr 2024 16:51:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711990262; bh=dtih0+ozksseOakGBhA7/T+2YqsWQqLjZsOut7vp2XA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c/WWmr2E7TAGM3dAALV8Cq/BvcLZTPtne81h0SoNnpkv8QSXjANz+WnANSq/sZKyq Ognr+EgiTAEPQk6KL30HsJCLUerFIwPJgY/60erALVmu84wf+m66aoq8F+GC6kU4aL 2iBE0wyizH2bY0Sd2uwHHRNfZPKZjMfW4CTNpR0w= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Biju Das , Thomas Gleixner , Geert Uytterhoeven , Sasha Levin Subject: [PATCH 6.6 296/396] irqchip/renesas-rzg2l: Rename rzg2l_tint_eoi() Date: Mon, 1 Apr 2024 17:45:45 +0200 Message-ID: <20240401152556.729024419@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240401152547.867452742@linuxfoundation.org> References: <20240401152547.867452742@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Biju Das [ Upstream commit 7cb6362c63df233172eaecddaf9ce2ce2f769112 ] Rename rzg2l_tint_eoi()->rzg2l_clear_tint_int() and simplify the code by removing redundant priv and hw_irq local variables. Signed-off-by: Biju Das Signed-off-by: Thomas Gleixner Reviewed-by: Geert Uytterhoeven Stable-dep-of: 853a6030303f ("irqchip/renesas-rzg2l: Prevent spurious interrupts when setting trigger type") Signed-off-by: Sasha Levin --- drivers/irqchip/irq-renesas-rzg2l.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-renesas-rzg2l.c b/drivers/irqchip/irq-renesas-rzg2l.c index 6e81b5945d21b..2fcd63bfb44d2 100644 --- a/drivers/irqchip/irq-renesas-rzg2l.c +++ b/drivers/irqchip/irq-renesas-rzg2l.c @@ -90,11 +90,9 @@ static void rzg2l_irq_eoi(struct irq_data *d) } } -static void rzg2l_tint_eoi(struct irq_data *d) +static void rzg2l_clear_tint_int(struct rzg2l_irqc_priv *priv, unsigned int hwirq) { - unsigned int hw_irq = irqd_to_hwirq(d) - IRQC_TINT_START; - struct rzg2l_irqc_priv *priv = irq_data_to_priv(d); - u32 bit = BIT(hw_irq); + u32 bit = BIT(hwirq - IRQC_TINT_START); u32 reg; reg = readl_relaxed(priv->base + TSCR); @@ -117,7 +115,7 @@ static void rzg2l_irqc_eoi(struct irq_data *d) if (hw_irq >= IRQC_IRQ_START && hw_irq <= IRQC_IRQ_COUNT) rzg2l_irq_eoi(d); else if (hw_irq >= IRQC_TINT_START && hw_irq < IRQC_NUM_IRQ) - rzg2l_tint_eoi(d); + rzg2l_clear_tint_int(priv, hw_irq); raw_spin_unlock(&priv->lock); irq_chip_eoi_parent(d); } -- 2.43.0