From: ludovic.desroches@atmel.com (ludovic.desroches)
To: linux-arm-kernel@lists.infradead.org
Subject: How to use linear mapping without DT?
Date: Thu, 14 Jun 2012 11:54:36 +0200 [thread overview]
Message-ID: <4FD9B4DC.80706@atmel.com> (raw)
Hello,
In fact, my question depends on sparse irq, irq domain and non DT.
I have enabled sparse_irq use for at91 sub architecture. I don't know if
it is the good solution... I won't like to use n_irqs in my machine
descriptor. I think the goal of sparse irq is to allocate the irq
descriptor only when the irq is used. It's better than allocating the
range that can be managed by the controller which should be indicated by
nr_irqs.
In this case using the legacy irq domain is not the right solution since
I will have to allocate the range of irq managed by the controller.
Moving to linear irq domain should be better. Moreover, I have seen that
Grant may want to remove it.
So, how to move to linear irq domain? In DT case, all the interrupts
into the DT are mapped so the irq descriptor is allocated and my device
will have the right virq number. In non DT case, my device has an irq
number corresponding to a fixed value (which is in fact the hwirq
number) but probably not to any existing virq.
So how to get a valid virq? Do I have to call irq_create_mapping from my
driver? It's probably not the right way... Should I keep legacy domain
and set nr_irqs?
Thanks
Regards
Ludovic
next reply other threads:[~2012-06-14 9:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-14 9:54 ludovic.desroches [this message]
2012-06-15 16:01 ` How to use linear mapping without DT? Shawn Guo
2012-06-15 16:07 ` Mark Brown
2012-06-15 16:32 ` ludovic.desroches
2012-06-16 2:35 ` Shawn Guo
2012-06-18 12:10 ` ludovic.desroches
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=4FD9B4DC.80706@atmel.com \
--to=ludovic.desroches@atmel.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).