irq

Daniele Bosi d.bosi at selcomgroup.com
Thu Sep 4 00:36:54 EST 2008


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
> Linuxppc-dev at ozlabs.org
> 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:* d.bosi at selcomgroup.com <mailto:d.bosi at selcomgroup.com>




More information about the Linuxppc-dev mailing list