From: Daniele Bosi <d.bosi@selcomgroup.com>
To: "Sébastien Chrétien" <sebastien.chretien.enseirb@gmail.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: irq
Date: Wed, 03 Sep 2008 16:36:54 +0200 [thread overview]
Message-ID: <48BEA106.9090307@selcomgroup.com> (raw)
In-Reply-To: <319b0ac50809030715h1a03a606jacddd400019f4483@mail.gmail.com>
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@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@selcomgroup.com <mailto:d.bosi@selcomgroup.com>
next prev parent reply other threads:[~2008-09-03 14:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-03 14:15 irq Sébastien Chrétien
2008-09-03 14:36 ` Daniele Bosi [this message]
2008-09-03 15:03 ` irq Sébastien Chrétien
2008-09-03 16:05 ` irq M B
2008-09-03 16:36 ` irq Sébastien Chrétien
2008-09-03 17:08 ` irq Scott Wood
2008-09-03 21:02 ` irq Sébastien Chrétien
2008-09-03 21:03 ` irq Scott Wood
2008-09-04 3:02 ` irq Benjamin Herrenschmidt
2008-09-04 8:27 ` irq Sébastien Chrétien
2008-09-04 13:23 ` irq Sébastien Chrétien
2008-09-04 14:18 ` irq Scott Wood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48BEA106.9090307@selcomgroup.com \
--to=d.bosi@selcomgroup.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=sebastien.chretien.enseirb@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).