public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Subject: Simulating level triggered interrupts with edges
Date: Wed, 22 Jun 2011 20:50:08 +0100	[thread overview]
Message-ID: <20110622195008.GC19628@opensource.wolfsonmicro.com> (raw)

I've run into a couple of cases recently where a system has had a device
with a level triggered interrupt connected to an edge triggered
interrupt controller.  Ignoring for the minute the hardware design
concerns one might have this strikes me as something I'd expect the
kernel to take a reasonable stab at handling in common code since it
should be possible to have the core simply call the level triggered
handler repeatedly until it returns IRQ_NONE when used with an edge
based interrupt.  Obviously this leaves something to be desired but
something like this seems to be the most sensible way to deal with such
systems.

Is this supported by the current code?  I can't see any such support but
that doesn't mean I'm not missing it.  If it is not supported and I'm
not missing some much bigger problem with the idea can you make any
suggestions about the least bad way to allow systems to do this?

             reply	other threads:[~2011-06-22 19:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-22 19:50 Mark Brown [this message]
2011-06-22 21:32 ` Simulating level triggered interrupts with edges Thomas Gleixner
2011-06-23  1:23   ` Mark Brown

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=20110622195008.GC19628@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /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