linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* QUERY: How to handle sharing of interrupt between different peripherals.
@ 2010-03-15  4:37 Viresh KUMAR
  2010-03-15  5:18 ` jassi brar
  2010-03-15 11:11 ` Russell King - ARM Linux
  0 siblings, 2 replies; 12+ messages in thread
From: Viresh KUMAR @ 2010-03-15  4:37 UTC (permalink / raw)
  To: linux-arm-kernel

Hello everybody,

In our SOC (SPEArxxx), we have few peripherals which share common interrupt
line. For example we can have GPIO (PL061), SPI (PL022) and SDIO (Arasan) sharing
same physical IRQ line. Now there is a register in SOC which can give status of
this interrupt line (i.e. source of interrupt). We have standard drivers for
all of these, and these drivers don't request IRQ in shared mode.

How should we handle these IRQs now. One way i have been thinking of is to write
a wrapper layer for this type of IRQs for our SOC, which will register actual
IRQ numbers. Standard drivers can be provided virtual IRQ numbers for
registration. Now this wrapper, based on source of interrupt can call the
irq_handler for standard drivers.

Is this approach correct? Or is there any standard way to resolve these issues.

regards,
viresh kumar.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-03-15 13:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-15  4:37 QUERY: How to handle sharing of interrupt between different peripherals Viresh KUMAR
2010-03-15  5:18 ` jassi brar
2010-03-15  6:22   ` Ben Dooks
2010-03-15  6:48     ` Viresh KUMAR
2010-03-15  6:44   ` Viresh KUMAR
2010-03-15  6:50     ` jassi brar
2010-03-15  6:55       ` Viresh KUMAR
2010-03-15  7:00         ` jassi brar
2010-03-15 13:04         ` Bill Gatliff
2010-03-15 13:05     ` Bill Gatliff
2010-03-15 11:11 ` Russell King - ARM Linux
2010-03-15 13:53   ` Shiraz HASHIM

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).