gicv3: Fix support for systems without secure interrupts
authorAndre Przywara <andre.przywara@arm.com>
Thu, 9 Nov 2017 18:08:00 +0000 (12:08 -0600)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 3 Apr 2018 15:45:10 +0000 (16:45 +0100)
commit205cf6e7a52bc006cb625060b1dafcbd3d2a0d76
tree508370223f841ba572c9e2d51f7a51094d46a8cf
parent9d6d800d13fe18acf6a759c00ae981eb437eff1f
gicv3: Fix support for systems without secure interrupts

Accessing the interrupt_props array only happens inside a loop over
interrupt_props_num, so the GICv3 driver can cope with no secure
interrupts. This allows us to relax the asserts that insists on
a non-NULL interrupt_props pointer and at least one secure interrupt.
This enables GICv3 platforms which have no need for a secure interrupt.

This only covers the non-deprecated code paths.

Change-Id: I49db291906512f56af065772f69acb281dfbdcfb
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/arm/gic/v3/gicv3_helpers.c
drivers/arm/gic/v3/gicv3_main.c