« Return to Thread: which irqflag to use with request_irq

Re: which irqflag to use with request_irq

by Scott Wood-2 :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: which irqflag to use with request_irq