From nobody Sat Jun 13 01:53:44 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 5BD693FCB34; Mon, 11 May 2026 14:20:56 +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=1778509257; cv=none; b=NH2P1yWHScRIglRB9WnMKYvay8kwD3jUSuvFDsM76/dASiXdD+JjYE3I+Pw9EEKIcVNH9NJ99+yVcXEPewu6vqUfZK1tz72/XAKkBP6j/xU68EpzMQsCRy52W5rCdGEke8GmO81a/1pi+BSmWFi8yc5Rt87Vcmjfq24DkT4Rgi8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778509257; c=relaxed/simple; bh=9bFdMCTctFBl039E88t/6Ng7q33nAgM+C5gkfj2Chhg=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=R5w1iODr9JawSuiuJXhqNvuQVu6c8F0v0J3fISFf8hzNQ9BWbp9KTy8exx+cAsqwTDy5tlfMIE2H0r9GmSa0UhwbhGFFpr0oshbW0vEwg1anA8pSk0F8hligqlmQlOOCvBN5nlEqXezeXEuksLVXe8YKxwOuJ9/S3WAa48gCGxk= 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=gOMbBJZP; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Yq5C/KVy; 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="gOMbBJZP"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Yq5C/KVy" Date: Mon, 11 May 2026 14:20:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1778509254; 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=VnDeZy/Ol0jai3meIHgTtOubmlIU62/Ei/iqMB2+4Qg=; b=gOMbBJZPIloizrE3C7N9tllzodF6NDxnLzycmJCWedhYo9jSnhOfBvW1UFpS/xtQfb6evF ZyySzX40o4MYRvFVo9c7kYjacN7zyu7k7+YSCanCbHLEdtoMBd6A6cfY2+IRCxNFyMJjR7 TQ9+4Nhpz8KeRIB2me6yvL3t2UcuPixS66FOSO8Z5F/TQrW+OhwfZ8GJznAxloTv/h05RB VlpeI4jlBuW/3aImaxI68iyQNa4yP/yMQgLz13K1xH96PglCso/ZmKC2sdrPmEspzS7shd q36WPkB3wwwY3VIeTAt/4Wi6wPC/Qk0NQFyrFKNPkqOzkc2sgiTab61K+7yMlg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1778509254; 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=VnDeZy/Ol0jai3meIHgTtOubmlIU62/Ei/iqMB2+4Qg=; b=Yq5C/KVyLQKSt4JKCkrg/XUppRK6m4r+FM38/orCCeDr+iQX/MmFdKZjdZEFgX4yTEJnnD 5nuB6s1jBkbjrAAA== From: "tip-bot2 for Hans Zhang" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/drivers] irqchip/gic-v3-its: Use FIELD_MODIFY() Cc: Hans Zhang <18255117159@163.com>, Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260430162954.44156-1-18255117159@163.com> References: <20260430162954.44156-1-18255117159@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177850925309.188840.1376000615116896303.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: 5fd6f2154734f447e83b6de9a08d16848605191e Gitweb: https://git.kernel.org/tip/5fd6f2154734f447e83b6de9a08d16848= 605191e Author: Hans Zhang <18255117159@163.com> AuthorDate: Fri, 01 May 2026 00:29:54 +08:00 Committer: Thomas Gleixner CommitterDate: Mon, 11 May 2026 16:16:21 +02:00 irqchip/gic-v3-its: Use FIELD_MODIFY() Use FIELD_MODIFY() to remove open-coded bit manipulation. No functional change intended. Signed-off-by: Hans Zhang <18255117159@163.com> Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260430162954.44156-1-18255117159@163.com --- drivers/irqchip/irq-gic-v3-its.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-= its.c index 291d766..e78795b 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -4784,8 +4784,7 @@ static bool __maybe_unused its_enable_quirk_cavium_22= 375(void *data) struct its_node *its =3D data; =20 /* erratum 22375: only alloc 8MB table size (20 bits) */ - its->typer &=3D ~GITS_TYPER_DEVBITS; - its->typer |=3D FIELD_PREP(GITS_TYPER_DEVBITS, 20 - 1); + FIELD_MODIFY(GITS_TYPER_DEVBITS, &its->typer, 20 - 1); its->flags |=3D ITS_FLAGS_WORKAROUND_CAVIUM_22375; =20 return true; @@ -4805,8 +4804,7 @@ static bool __maybe_unused its_enable_quirk_qdf2400_e= 0065(void *data) struct its_node *its =3D data; =20 /* On QDF2400, the size of the ITE is 16Bytes */ - its->typer &=3D ~GITS_TYPER_ITT_ENTRY_SIZE; - its->typer |=3D FIELD_PREP(GITS_TYPER_ITT_ENTRY_SIZE, 16 - 1); + FIELD_MODIFY(GITS_TYPER_ITT_ENTRY_SIZE, &its->typer, 16 - 1); =20 return true; } @@ -4840,10 +4838,8 @@ static bool __maybe_unused its_enable_quirk_socionex= t_synquacer(void *data) its->get_msi_base =3D its_irq_get_msi_base_pre_its; =20 ids =3D ilog2(pre_its_window[1]) - 2; - if (device_ids(its) > ids) { - its->typer &=3D ~GITS_TYPER_DEVBITS; - its->typer |=3D FIELD_PREP(GITS_TYPER_DEVBITS, ids - 1); - } + if (device_ids(its) > ids) + FIELD_MODIFY(GITS_TYPER_DEVBITS, &its->typer, ids - 1); =20 /* the pre-ITS breaks isolation, so disable MSI remapping */ its->msi_domain_flags &=3D ~IRQ_DOMAIN_FLAG_ISOLATED_MSI;