From: Manuel Lauss <manuel.lauss@googlemail.com>
To: linux-kernel@vger.kernel.org
Subject: threaded irq handler thread doesn't run
Date: Sun, 1 Nov 2009 14:05:44 +0100 [thread overview]
Message-ID: <f861ec6f0911010505l641d07fbh4608ee4f180fbebd@mail.gmail.com> (raw)
Hello!
I noticed that the thread of a threaded irq doesn't run if the interrupt
is disabled: I have a semi-broken system with 2 carddetect interrupts,
both are supposed to be edge-triggered, but due to broken PLD they
continue screaming as long as their trigger condition is met. To work
around this, the triggering one is disabled while the other gets enabled;
disabling occurs in the "fast" handler, enabling in the threaded handler:
static irqreturn_t threadfn(irq, ctx)
{
...
enable_irq(irq == cd1int ? cd2int : cd1int);
...
}
static irqreturn_t fastint(irq, ctx)
{
disable_irq_nosync(irq);
return IRQ_WAKE_THREAD;
}
...
request_threaded_irq(cd1int, fastint, threadfn, 0, "insert", ctx);
request_threaded_irq(cd2int, fastint, threadfn, 0, "eject", ctx);
In kernel/irq/manage.c::irq_thread(), the thread func isn't run
if the irq has been disabled; is there a way around this?
(removing that restriction completely solves it for me, but I
doubt this is acceptable for others).
Thanks!
Manuel Lauss
reply other threads:[~2009-11-01 13:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=f861ec6f0911010505l641d07fbh4608ee4f180fbebd@mail.gmail.com \
--to=manuel.lauss@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
all inboxes | Powered by JetHome®