fix(gic): fix gic_v2 spi irq handling
With commit@055adff8d7e5431174672c7aac0bc530c4e7a778
check for is_plat_spi was removed in `tftf_irq_enable` this is
correctly handled from re-routing but not the case in gic_v2 handling.
Change-Id: Id22f2dcc5d9de3950bc210139869ff284c636719
Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
diff --git a/drivers/arm/gic/gic_v2.c b/drivers/arm/gic/gic_v2.c
index 4a93406..e5bee0f 100644
--- a/drivers/arm/gic/gic_v2.c
+++ b/drivers/arm/gic/gic_v2.c
@@ -267,6 +267,13 @@
{
unsigned int gic_cpu_id;
assert(gicd_base_addr);
+
+ /* only relevant for SPIs */
+ if (!IS_PLAT_SPI(num)) {
+ return;
+ }
+
+ /* Routing information can be set only for SPIs */
assert(IS_SPI(num));
gic_cpu_id = core_pos_to_gic_id(core_pos);