Re: [PATCH 2/3] gpio: langwell: allocate IRQ descriptors dynamicallyfor SPARSE_IRQ

From: Mika Westerberg
Date: Tue Apr 10 2012 - 03:17:56 EST


On Thu, Apr 05, 2012 at 09:34:14PM -0700, Grant Likely wrote:
> On Thu, 5 Apr 2012 12:15:16 +0300, Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> wrote:
> > Since x86 is using SPARSE_IRQ by default nowadays it means that we need to
> > allocate IRQ descriptors dynamically using irq_alloc_descs() otherwise the
> > genirq code fails to convert our irq numbers to suitable descriptors.
> >
> > Signed-off-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>
>
> Applied, thakns.
>
> While you're in this driver, you should look at converting to using an
> irq_domain for irq <==> hwirq mapping. At the very least,
> irq_data->hwirq should be used instead of abusing irq_set_chip_data().

Ok, will do. Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/