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

Commit 26f69690 authored by Maulik Shah's avatar Maulik Shah
Browse files

irqchip: gic: print correct resume irq name



Currently hwirq number is used to get descriptor for irq
in gic_show_resume_irq function which returns incorrect
irq descriptor.

Update it to use correct irq number using irq_find_mapping.

Change-Id: Ib61ebcb3d5e520566b157ee5781d11b70d0f513d
Signed-off-by: default avatarMaulik Shah <mkshah@codeaurora.org>
parent 638d25fd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -278,7 +278,9 @@ static void gic_show_resume_irq(struct gic_chip_data *gic)
	for (i = find_first_bit((unsigned long *)pending, gic->gic_irqs);
	i < gic->gic_irqs;
	i = find_next_bit((unsigned long *)pending, gic->gic_irqs, i+1)) {
		struct irq_desc *desc = irq_to_desc(i + gic->irq_offset);
		unsigned int irq = irq_find_mapping(gic->domain,
						i + gic->irq_offset);
		struct irq_desc *desc = irq_to_desc(irq);
		const char *name = "null";

		if (desc == NULL)