linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Chris Rutherford" <chrismrutherford@googlemail.com>
To: linux-kernel@vger.kernel.org
Subject: ldd irq problem
Date: Fri, 30 Nov 2007 09:28:56 +0000	[thread overview]
Message-ID: <40dfeece0711300128s731b3227xaa0b5982193e4b12@mail.gmail.com> (raw)
In-Reply-To: <40dfeece0711291447m2efa4f40i5c2c22a4273ecbc0@mail.gmail.com>

Helo lkml,

I'm trying to write a LDD but I have got a bug.  Any ideas what i
might be doing wrong?

ret = request_irq(12, handler, SA_INTERRUPT | SA_SHIRQ, "sha1
handler", DEVICE_NAME);
printk (KERN_INFO "req irq %d \n", ret);
enable_irq(12);

I am working on a linux device driver and trying to handle interupts.
using the code above I get the log messages below.

req irq 0
Unbalanced enable for IRQ 12
BUG: warning at kernel/irq/manage.c:118/enable_irq()
 [<c0140889>] enable_irq+0x54/0x87
 [<c02133de>] __driver_attach+0x0/0x5d
 [<e0b6f23b>] device_probe+0x16b/0x173 [raggedstone1]
 [<c01c33ce>] pci_device_probe+0x36/0x57
 [<c0213339>] driver_probe_device+0x42/0x91
 [<c0213416>] __driver_attach+0x38/0x5d
 [<c0212e58>] bus_for_each_dev+0x37/0x59
 [<c02132a3>] driver_attach+0x11/0x13
 [<c02133de>] __driver_attach+0x0/0x5d
 [<c0212b67>] bus_add_driver+0x6b/0xfd
 [<c01c3509>] __pci_register_driver+0x47/0x63
 [<c0135c67>] sys_init_module+0x1732/0x18b5
 [<c015a43b>] do_sync_read+0xb6/0xf1
 [<c016e2db>] dput+0x2a/0x119
 [<c0102bed>] sysenter_past_esp+0x56/0x79


Has any one seen this type of bug message before?  any idea what could
be causing it.

Thanks

Chris

       reply	other threads:[~2007-11-30  9:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <40dfeece0711291447m2efa4f40i5c2c22a4273ecbc0@mail.gmail.com>
2007-11-30  9:28 ` Chris Rutherford [this message]
2007-11-30 10:31   ` ldd irq problem Jiri Slaby
2007-11-30 17:39     ` Chris Rutherford

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=40dfeece0711300128s731b3227xaa0b5982193e4b12@mail.gmail.com \
    --to=chrismrutherford@googlemail.com \
    --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;
as well as URLs for NNTP newsgroup(s).