From: Thomas Andrews <tandrews@grok.co.za>
To: linux-kernel@vger.kernel.org
Subject: Re: debugging "irq 7: nobody cared" in my module
Date: Mon, 5 Jun 2006 18:11:02 +0200 [thread overview]
Message-ID: <20060605161102.GP32055@grok.co.za> (raw)
In-Reply-To: <20060605125132.GN32055@grok.co.za>
On Mon, Jun 05, 2006 at 02:51:32PM +0200, Thomas Andrews wrote:
> What can cause "irq x: nobody cared" ? On exit from my IRQ handler, I am
> checking to make sure that there are no residual/pending unhandled
> events on exit. Here is part of my handler:
>
> irqreturn_t scx200_acb_irq(int irq_no, void *dev_id, struct pt_regs *regs)
> {
> struct scx200_acb_iface *iface = dev_id;
> unsigned long flags;
> spin_lock_irqsave(lock, flags);
> if (inb(ACBST)) {
> // tasklet_schedule(&iface->tasklet);
> scx200_acb_machine(iface, inb(ACBST));
> if (iface->state == state_idle) /* Finished */
> wake_up_interruptible(&iface->acb_queue);
> } else {
> /* Should never get here */
> printk("causeless IRQ!\n");
> /* Reset the ACB to clear any pending IRQ */
> outb((inb(ACBCTL2) & 0xfe), ACBCTL2);
> outb((inb(ACBCTL2) | 0x01), ACBCTL2);
> }
> /* Check to see if some event was not handled */
> if (inb(ACBST) & 0xBC)
> printk("============== ACBST=%#x ===============\n",inb(ACBST));
> spin_unlock_irqrestore(lock, flags);
> return IRQ_RETVAL(0);
> }
I've found the problem now. The last line is wrong - it should read:
return IRQ_RETVAL(IRQ_HANDLED);
next prev parent reply other threads:[~2006-06-05 16:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-05 12:51 debugging "irq 7: nobody cared" in my module Thomas Andrews
2006-06-05 16:11 ` Thomas Andrews [this message]
2006-06-05 16:47 ` Michael Buesch
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=20060605161102.GP32055@grok.co.za \
--to=tandrews@grok.co.za \
--cc=linux-kernel@vger.kernel.org \
/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