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

Commit b95c5dcc authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents f996c367 7009817f
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();