Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7009817f authored by Neeraj Upadhyay's avatar Neeraj Upadhyay Committed by Gerrit - the friendly Code Review server
Browse files

irqchip: gic-v3: Skip save/restore when gic is uninitialized



Skip save and restore of GIC SPI configuration, if the GICV3
drivers hasn't been initialized.

Change-Id: I1bc32f58eef349487b2096ea2c26d491ee45a433
Signed-off-by: default avatarNeeraj Upadhyay <neeraju@codeaurora.org>
parent 97efe3ba
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -228,6 +228,9 @@ void gic_v3_dist_save(void)
	void __iomem *base = gic_data.dist_base;
	int reg, i;

	if (!base)
		return;

	bitmap_zero(irqs_restore, MAX_IRQ);

	for (reg = SAVED_ICFGR; reg < NUM_SAVED_GICD_REGS; reg++) {
@@ -424,6 +427,9 @@ static void _gic_v3_dist_clear_reg(u32 offset)
 */
void gic_v3_dist_restore(void)
{
	if (!gic_data.dist_base)
		return;

	_gic_v3_dist_check_icfgr();
	_gic_v3_dist_check_ipriorityr();
	_gic_v3_dist_check_isenabler();