Skip to content

Commit 29c8b85

Browse files
Sticklyman1936Marc Zyngier
authored andcommitted
irqchip/gic-v5: Fix inversion of IRS_IDR0.virt flag
It appears that a !! became ! during a cleanup, resulting in inverted logic when detecting if a host GICv5 implementation is capable of virtualization. Re-add the missing !, fixing the behaviour. Fixes: 3227c3a ("irqchip/gic-v5: Check if impl is virt capable") Signed-off-by: Sascha Bischoff <sascha.bischoff@arm.com> Link: https://patch.msgid.link/20260225083130.3378490-1-sascha.bischoff@arm.com Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent ec197dc commit 29c8b85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/irqchip/irq-gic-v5-irs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ static int __init gicv5_irs_init(struct device_node *node)
744744
*/
745745
if (list_empty(&irs_nodes)) {
746746
idr = irs_readl_relaxed(irs_data, GICV5_IRS_IDR0);
747-
gicv5_global_data.virt_capable = !FIELD_GET(GICV5_IRS_IDR0_VIRT, idr);
747+
gicv5_global_data.virt_capable = !!FIELD_GET(GICV5_IRS_IDR0_VIRT, idr);
748748

749749
idr = irs_readl_relaxed(irs_data, GICV5_IRS_IDR1);
750750
irs_setup_pri_bits(idr);

0 commit comments

Comments
 (0)