Thread (77 messages) 77 messages, 11 authors, 2012-07-06
STALE5125d REVIEWED: 1 (0M)

[PATCH 05/16] ARM: imx: move irq_domain_add_legacy call into tzic driver

From: Dong Aisheng <hidden>
Date: 2012-06-15 09:29:14

On Thu, Jun 14, 2012 at 01:59:36PM +0800, Shawn Guo wrote:
Move irq_domain_add_legacy call from imx5*-dt.c into tzic init function
and have the tzic driver adopt irqdomain support for both DT and non-DT
boot.

Now tzic init function calls irq_alloc_descs to get irq_base and adds
a lenacy irqdomain with the irq_base, so that the mapping between tzic
irq and Linux irq number can be handled by irqdomain.

Signed-off-by: Shawn Guo <redacted>
...
quoted hunk ↗ jump to hunk
@@ -77,15 +80,14 @@ static int tzic_set_irq_fiq(unsigned int irq, unsigned int type)
 static void tzic_irq_suspend(struct irq_data *d)
 {
 	struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d);
-	int idx = gc->irq_base >> 5;
+	int idx = d->hwirq >> 5;
Good idea to address the virt irq_base issue.

Acked-by: Dong Aisheng <redacted>

Regards
Dong Aisheng
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help