irqchip/gicv3: Handle resource request failure consistently
authorRobin Murphy <robin.murphy@arm.com>
Thu, 16 Jun 2022 13:46:46 +0000 (14:46 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 16 Jun 2022 15:55:59 +0000 (16:55 +0100)
commit4deb96e35c5c3ebfeb9cf567f3ba80fa54e2cec1
treed22cc6c7d76a6386e3336105669c8adf46e6db23
parent6fac824f40987a54a08dfbcc36145869d02e45b1
irqchip/gicv3: Handle resource request failure consistently

Due to a silly oversight on my part, making the simple switch to
of_io_request_and_map() in the DT path inadvertently introduced
divergent behaviour, whereby failng to request an iomem region now
becomes fatal for DT, vs. being silently ignored for ACPI.

Refactor a bit harder, so that request errors are non-fatal in both
paths as intended, but also consistently reported as well.

Reported-by: Matt Ranostay <mranostay@ti.com>
Fixes: 2b2cd74a06c3 ("irqchip/gic-v3: Claim iomem resources")
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/5f2b57a0131f3082fae9d3002d360bf784ccb092.1655387206.git.robin.murphy@arm.com
drivers/irqchip/irq-gic-v3.c