From: ming.lei@canonical.com (Ming Lei)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: OMAP2+: fix gpmc request_irq
Date: Fri, 18 May 2012 19:47:59 +0800 [thread overview]
Message-ID: <CACVXFVN_0mkVEJkC8iQLF87UVNRkxSUB3+6DeBBHB5dkt5ddrA@mail.gmail.com> (raw)
In-Reply-To: <CAMQu2gwzZ7dGW9xMNvTXqB8k3cfJuVF+a2cCVXLn4q92+W3aGQ@mail.gmail.com>
Hi,
On Fri, May 18, 2012 at 6:13 PM, Shilimkar, Santosh
<santosh.shilimkar@ti.com> wrote:
> Generally IRQF_SHARED means, the interrupt line is only one but
> multiple devices can generate the interrupts. If you connect
> different devices on GMPC using chip selects like Ethernet controller,
> Nand, NOR contoller, all of they can generate events which can be
> reported by the GPMC. That's the reason I shared the line
> is shared.
IMO, it depends on if the event handlers of other chips(ethernet, nand, nor..)
share the same irq number(GPMC_IRQ). If so, it should be IRQF_SHARED.
If they are handled in its own irq number(it may convert to irq dispatching),
that shouldn't be IRQF_SHARED.
On Fri, May 18, 2012 at 6:51 PM, Mohammed, Afzal <afzal@ti.com> wrote:
> Hi Ming,
>
> Requesting irq is called by driver of IP, while whether it is shared or
> not depends on SoC where IP lives, so ideally it seems platform should
> inform the driver whether it is shared & driver should do what platform
> tells. Or else to be safe, it should be made shared always ?
Shared or not(IRQF_SHARED) may be determined by hardware and
software handling.
If the same interrupt line is shared by several peripherals and all interrupt
handlers are requested to same interrupt number for handling IRQs from
these peripherals, it should be IRQF_SHARED.
>
> This may not make much sense now w.r.t gpmc, but would be applicable
> once gpmc becomes a driver (undergoing conversion), but may not be that
> important as there are no SoCs presently sharing gpmc interrupt (afaik)
Looks the fix isn't needed if so.
Anyway, thanks your guys for exposing much info about GPMC irq handling.
Thanks,
--
Ming Lei
prev parent reply other threads:[~2012-05-18 11:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-18 4:43 [PATCH] ARM: OMAP2+: fix gpmc request_irq Ming Lei
2012-05-18 7:03 ` Shilimkar, Santosh
2012-05-18 7:16 ` Mohammed, Afzal
2012-05-18 7:19 ` Shilimkar, Santosh
2012-05-18 7:40 ` Ming Lei
2012-05-18 7:43 ` Shilimkar, Santosh
2012-05-18 9:04 ` Ming Lei
2012-05-18 10:13 ` Shilimkar, Santosh
2012-05-18 10:51 ` Mohammed, Afzal
2012-05-18 10:59 ` Shilimkar, Santosh
2012-05-18 11:47 ` Ming Lei [this message]
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=CACVXFVN_0mkVEJkC8iQLF87UVNRkxSUB3+6DeBBHB5dkt5ddrA@mail.gmail.com \
--to=ming.lei@canonical.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).