[lkml]   [2009]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 2/2] uio: add an of_genirq driver
    Hans J. Koch wrote:
    > On Sun, Jun 14, 2009 at 09:05:33PM +0200, Wolfram Sang wrote:
    >>> Anyway, 0 is a valid IRQ number, so it cannot be used as "no irq".
    >> May I point you to this thread?
    > Linus is just plain wrong in this 4 year old mail.

    See also this related thread.

    >> (The issue comes up once in a while as some archs still use NO_IRQ, some with
    >> 0 some with -1)
    >>>> 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.

    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.


     \ /
      Last update: 2009-06-14 21:39    [W:0.019 / U:0.900 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site