which irqflag to use with request_irq

View: New views
2 Messages — Rating Filter:   Alert me  

which irqflag to use with request_irq

by liran raz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,

When using the function:
int request_irq (unsigned int      irq,
     irq_handler_t      handler,
     unsigned long      irqflags,
     const char *      devname,
     void *      dev_id);

To connect an ISR to one of the processor's
peripherals irq (SCC in my case).

Which value I should use for irqflags,
from the list in: interrupt.h file.

Kernel 2.6.24
Processor: MPC8272

Thanks,
Liran.



_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@...
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Re: which irqflag to use with request_irq

by Scott Wood-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

liran raz wrote:

> hi,
>
> When using the function:
> int request_irq (unsigned int      irq,
>      irq_handler_t      handler,
>      unsigned long      irqflags,
>      const char *      devname,
>      void *      dev_id);
>
> To connect an ISR to one of the processor's
> peripherals irq (SCC in my case).
>
> Which value I should use for irqflags,
> from the list in: interrupt.h file.

Just pass zero (or IRQF_SHARED if the IRQ is shared, but it shouldn't be
in this case).

-Scott

_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@...
https://ozlabs.org/mailman/listinfo/linuxppc-embedded