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

Commit 8db1b68a authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "irqchip: gic-v3: Add support to get pending irqs"

parents 66d2f998 a95fbbfa
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -344,6 +344,29 @@ static int gic_suspend(void)
	return 0;
}

/*
 * gic_show_pending_irq - Shows the pending interrupts
 * Note: Interrupts should be disabled on the cpu from which
 * this is called to get accurate list of pending interrupts.
 */
void gic_show_pending_irqs(void)
{
	void __iomem *base;
	u32 pending, enabled;
	unsigned int j;

	base = gic_data.dist_base;
	for (j = 0; j * 32 < gic_data.irq_nr; j++) {
		enabled = readl_relaxed(base +
					GICD_ISENABLER + j * 4);
		pending = readl_relaxed(base +
					GICD_ISPENDR + j * 4);
		pr_err("Pending and enabled irqs[%d] %x %x\n", j,
				pending, enabled);

	}
}

static void gic_show_resume_irq(struct gic_chip_data *gic)
{
	unsigned int i;
+1 −0
Original line number Diff line number Diff line
@@ -594,6 +594,7 @@ struct rdists {
};

struct irq_domain;
void gic_show_pending_irqs(void);
struct fwnode_handle;
int its_cpu_init(void);
int its_init(struct fwnode_handle *handle, struct rdists *rdists,