Subject: Re: irq

From: Daniele Bosi <[email-masked]>
Date: Wed, 03 Sep 2008 16:36:54 +0200

Try to set some flag into the third parameter of the request_irq()
function like:

SA_SHIRQ                Interrupt is shared

SA_INTERRUPT            Disable local interrupts while processing

SA_SAMPLE_RANDOM        The interrupt can be used for entropy

otherwise try to use the function install_irq_handler()

bye Daniele

Sébastien Chrétien ha scritto:
> Hello,
>
> I am trying to register a function writh IRQ :
>  
> static irqreturn_t uart_test (int irq , void *dev_id)
> {
>     printk("/!\\ Interruption : tx_empty\n");
>        return IRQ_HANDLED;
> }
>    
>     req=request_irq(0x18,uart_test,NULL,"uart_test",NULL);
>     printk("Initialisation IRQ UART : %d \n", req);   
>
> When I boot linux ppc, the req value is -38.
> What is wrong ?
> ------------------------------------------------------------------------
>
> _______________________________________________
> Linuxppc-dev mailing list
> [email-masked]
> https://ozlabs.org/mailman/listinfo/linuxppc-dev

-- 

------------------------------------------------------------------------

  Daniele Bosi

*DIGITEK S.p.A.*

Via L. Romagnoli 24,
41033 Concordia sulla Secchia
Modena (MO), Italy

*Tel*: +39-(0)53556942 Fax. +39-(0)53554550

*Web:    * http://www.digitek.it

*Mail to:* [email-masked] <mailto:[email-masked]>