Re: [PATCH 2/4] irqdomain: augment add_simple() to allocate descs

2012-11-26 Thread Grant Likely
On Thu, 27 Sep 2012 08:41:53 -0500, Rob Herring wrote: > On 09/27/2012 08:13 AM, Linus Walleij wrote: > > --- > > kernel/irq/irqdomain.c | 21 - > > 1 file changed, 16 insertions(+), 5 deletions(-) > > > > diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c > >

Re: [PATCH 2/4] irqdomain: augment add_simple() to allocate descs

2012-11-26 Thread Grant Likely
On Thu, 27 Sep 2012 08:41:53 -0500, Rob Herring robherri...@gmail.com wrote: On 09/27/2012 08:13 AM, Linus Walleij wrote: --- kernel/irq/irqdomain.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/kernel/irq/irqdomain.c

Re: [PATCH 2/4] irqdomain: augment add_simple() to allocate descs

2012-09-27 Thread Paul Mundt
On Thu, Sep 27, 2012 at 03:13:45PM +0200, Linus Walleij wrote: > + if (first_irq > 0) { > + int irq_base; > + > + irq_base = irq_alloc_descs(first_irq, 0, size, numa_node_id()); > + if (irq_base < 0) { > + WARN(1, "Cannot allocate

Re: [PATCH 2/4] irqdomain: augment add_simple() to allocate descs

2012-09-27 Thread Rob Herring
On 09/27/2012 08:13 AM, Linus Walleij wrote: > From: Linus Walleij > > Currently we rely on all IRQ chip instances to dynamically > allocate their IRQ descriptors unless they use the linear > IRQ domain. So for irqdomain_add_legacy() and > irqdomain_add_simple() the caller need to make sure that

[PATCH 2/4] irqdomain: augment add_simple() to allocate descs

2012-09-27 Thread Linus Walleij
From: Linus Walleij Currently we rely on all IRQ chip instances to dynamically allocate their IRQ descriptors unless they use the linear IRQ domain. So for irqdomain_add_legacy() and irqdomain_add_simple() the caller need to make sure that descriptors are allocated. Let's slightly augment the

[PATCH 2/4] irqdomain: augment add_simple() to allocate descs

2012-09-27 Thread Linus Walleij
From: Linus Walleij linus.wall...@linaro.org Currently we rely on all IRQ chip instances to dynamically allocate their IRQ descriptors unless they use the linear IRQ domain. So for irqdomain_add_legacy() and irqdomain_add_simple() the caller need to make sure that descriptors are allocated.

Re: [PATCH 2/4] irqdomain: augment add_simple() to allocate descs

2012-09-27 Thread Rob Herring
On 09/27/2012 08:13 AM, Linus Walleij wrote: From: Linus Walleij linus.wall...@linaro.org Currently we rely on all IRQ chip instances to dynamically allocate their IRQ descriptors unless they use the linear IRQ domain. So for irqdomain_add_legacy() and irqdomain_add_simple() the caller need

Re: [PATCH 2/4] irqdomain: augment add_simple() to allocate descs

2012-09-27 Thread Paul Mundt
On Thu, Sep 27, 2012 at 03:13:45PM +0200, Linus Walleij wrote: + if (first_irq 0) { + int irq_base; + + irq_base = irq_alloc_descs(first_irq, 0, size, numa_node_id()); + if (irq_base 0) { + WARN(1, Cannot allocate irq_descs @