[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110519220402.GA25452@sirena.org.uk>
Date: Thu, 19 May 2011 23:04:03 +0100
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Sascha Hauer <s.hauer@...gutronix.de>
Cc: linux-kernel@...r.kernel.org, Thomas Gleixner <tglx@...utronix.de>,
Samuel Ortiz <sameo@...ux.intel.com>
Subject: Re: [PATCH] mfd wm8350: allocate irq descs dynamically
On Thu, May 19, 2011 at 08:56:48PM +0200, Sascha Hauer wrote:
> + if (!pdata->irq_base) {
> + wm8350->irq_base = irq_alloc_descs(-1, 0, ARRAY_SIZE(wm8350_irqs), 0);
> + if (wm8350->irq_base < 0) {
One other thing - it doesn't seem to be 100% desirable to making the
allocation of the IRQ descriptors depend on not specifying a base - for
many situations we're likely to want to know what the numbers we end up
with are (eg, for passing to another device) but if we don't call
irq_alloc_decs() the platform still has to arrange for the descriptors
to be there in advance. It feels like the code should always use
irq_alloc_descs(), though obviously that's not going to work right now.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists