From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/3] ARM: clps711x: Add CLPS711X irqchip driver
Date: Fri, 3 Jan 2014 14:10:27 +0100 [thread overview]
Message-ID: <201401031410.27374.arnd@arndb.de> (raw)
In-Reply-To: <1387454336-1347-1-git-send-email-shc_work@mail.ru>
On Thursday 19 December 2013, Alexander Shiyan wrote:
> This adds the irqchip driver for Cirrus Logic CLPS711X series SoCs.
>
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Just one more question from my side, otherwise
Acked-by: Arnd Bergmann <arnd@arndb.de>
> + err = irq_alloc_descs(-1, 0, ARRAY_SIZE(clps711x_irqs), numa_node_id());
> + if (IS_ERR_VALUE(err))
> + goto out_iounmap;
> +
> + clps711x_intc->ops.map = clps711x_intc_irq_map;
> + clps711x_intc->ops.xlate = irq_domain_xlate_onecell;
> + clps711x_intc->domain =
> + irq_domain_add_legacy(np, ARRAY_SIZE(clps711x_irqs),
> + 0, 0, &clps711x_intc->ops, NULL);
Can't you use irq_domain_add_simple() here? When you are booting with DT
and SPARSE_IRQ, you should not need to allocate the descriptors at boot time,
but only as needed.
You will have to pass '0' as the first_irq argument for the DT case then,
and '1' for the non-DT case to actually allocate virqs starting at number 1.
Arnd
next prev parent reply other threads:[~2014-01-03 13:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-19 11:58 [PATCH v2 1/3] ARM: clps711x: Add CLPS711X irqchip driver Alexander Shiyan
2013-12-19 11:58 ` [PATCH v2 3/3] ARM: clps711x: Migrate CLPS711X subarch to the new " Alexander Shiyan
2014-01-03 13:10 ` Arnd Bergmann [this message]
2014-01-03 13:26 ` [PATCH v2 1/3] ARM: clps711x: Add CLPS711X " Alexander Shiyan
2014-01-03 13:58 ` Arnd Bergmann
2014-01-03 14:16 ` Alexander Shiyan
2014-01-09 12:20 ` Alexander Shiyan
2014-01-09 12:26 ` Arnd Bergmann
2014-01-13 14:38 ` Alexander Shiyan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201401031410.27374.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.