From nobody Thu Apr 2 14:09:56 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 BD6BC2F4A18; Sat, 28 Mar 2026 13:20:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774704034; cv=none; b=Y7ShWpUNqCIuviDmtoIe/w8SOlA3vSmQs4mLDZt9w3skrBoB/9PGtxnol651n1c8/6FG2+aUkdcGFBG/S3pYnbh1L1VHqjhLb+AJLZq0g2B253YB0YKlgBTt4/mpRsvWNlS9B2oFoPzzH3lB9qlWOrHFcMdApTJ/P9uEypqG57Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774704034; c=relaxed/simple; bh=T4TOdy2On/weYqOEHQR0ACgTjrc+RTidVnEIfgBsmBY=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=PFe0rT0H17JxQIDhVdvu/YcafHNIflC2Elnnu4Iurt67T+MktYhbH+/W0ECVvVciN7xmzIBDxcGQe+BJJhf/m5M4FZjdQH9j6BeqkTPWY1hMvq26vYpeOGRzwDeC2F+WUSrrXbsieAk6sT4Jwu30Ogyp2X34qRHDDToth8xiQb8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=S/9gJtzA; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=fVRI6ho4; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="S/9gJtzA"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fVRI6ho4" Date: Sat, 28 Mar 2026 13:20:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1774704031; 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=Z8xinzUkz6M38U5E/XwDOJVjywmPyCJkRq/ECLU1+Pg=; b=S/9gJtzAUilfudlpm3v31xhOkSACGDOYnQ2bk3EwmabJd29o3O/wHycfGD11IwRAQ8qYTa pWx9WA4ROehyUAc6fw/TxhLIE+edYIuKSxlr2URLQc1BTe2RLMPG+WxBWqBIdGbr2d+owy mZpJfl1du3sMj6ZUgebYmuOp27CGstNac1hkZYaYIqyWsF/yDwx7JjFvZKprg6c/8hnQXz cKjAkIOECz1kFv6DAqvOllM19oF+PmpQn4GqXGsAUjJLy+9mP8J52CC7X5hbG2nYMdMn1c HniJK65gYsuD2xVewKS7Y8KWOUAWEs+Er1/wb9AadUpnzs0X6bIfcKyPxzpgmQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1774704031; 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=Z8xinzUkz6M38U5E/XwDOJVjywmPyCJkRq/ECLU1+Pg=; b=fVRI6ho4JuEGpqtq3oVr5SlQZpKi+2n79YRjXzS33b861TjGM9f0+NSf6B6lPb1ooTx/cq IKoiSTX0EcKPAOCA== From: "tip-bot2 for Biju Das" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/drivers] irqchip/renesas-rzg2l: Replace raw_spin_{lock,unlock} with guard() in rzg2l_irq_set_type() Cc: Biju Das , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260328103324.134131-3-biju.das.jz@bp.renesas.com> References: <20260328103324.134131-3-biju.das.jz@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177470402619.1647592.11874118011877065271.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the irq/drivers branch of tip: Commit-ID: 9fd2170d70178faa0427adaa9d2dfdbfa231d1b7 Gitweb: https://git.kernel.org/tip/9fd2170d70178faa0427adaa9d2dfdbfa= 231d1b7 Author: Biju Das AuthorDate: Sat, 28 Mar 2026 10:33:19=20 Committer: Thomas Gleixner CommitterDate: Sat, 28 Mar 2026 14:14:51 +01:00 irqchip/renesas-rzg2l: Replace raw_spin_{lock,unlock} with guard() in rzg2l= _irq_set_type() Simplify the locking logic in rzg2l_irq_set_type() by using guard(), eliminating the need for an explicit unlock call. [ tglx: Remove the pointless cleanup.h include. The spinlock guards come from spinlock.h ] Signed-off-by: Biju Das Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260328103324.134131-3-biju.das.jz@bp.renes= as.com --- drivers/irqchip/irq-renesas-rzg2l.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-renesas-rzg2l.c b/drivers/irqchip/irq-rene= sas-rzg2l.c index f5c4d7e..755fac3 100644 --- a/drivers/irqchip/irq-renesas-rzg2l.c +++ b/drivers/irqchip/irq-renesas-rzg2l.c @@ -373,14 +373,13 @@ static int rzg2l_irq_set_type(struct irq_data *d, uns= igned int type) return -EINVAL; } =20 - raw_spin_lock(&priv->lock); + guard(raw_spinlock)(&priv->lock); tmp =3D readl_relaxed(priv->base + IITSR); tmp &=3D ~IITSR_IITSEL_MASK(iitseln); tmp |=3D IITSR_IITSEL(iitseln, sense); if (clear_irq_int) rzg2l_clear_irq_int(priv, hwirq); writel_relaxed(tmp, priv->base + IITSR); - raw_spin_unlock(&priv->lock); =20 return 0; }