Thread (24 messages) 24 messages, 7 authors, 2009-06-16

Re: [PATCH 2/2] uio: add an of_genirq driver

From: Wolfgang Grandegger <hidden>
Date: 2009-06-14 19:37:10
Also in: linuxppc-dev, lkml

Hans J. Koch wrote:
On Sun, Jun 14, 2009 at 09:05:33PM +0200, Wolfram Sang wrote:
quoted
quoted
Anyway, 0 is a valid IRQ number, so it cannot be used as "no irq".
May I point you to this thread?

http://lkml.org/lkml/2005/11/21/221
Linus is just plain wrong in this 4 year old mail.
See also this related thread.

http://groups.google.com/group/rtc-linux/browse_thread/thread/9816648d5a8a1c9e/9968968188b5ab5a?lnk=gst&q=rx8025#9968968188b5ab5a
quoted
(The issue comes up once in a while as some archs still use NO_IRQ, some with
0 some with -1)
quoted
quoted
	if (uioinfo->irq == NO_IRQ)
		uioinfo->irq = UIO_IRQ_NONE;
Sorry for my ignorance, but what is NO_IRQ? If I do
It's 0 on PowerPC but ARM seems still to use -1.

http://lxr.linux.no/linux+v2.6.30/arch/powerpc/include/asm/irq.h#L29

For x86 it's not defined at all. But as this code is for the PowerPC,
where using NO_IRQ seems still to be OK.

Wolfgang.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help