mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Francis Moreau" <francis.moro@gmail.com>
To: dbrownell@users.sourceforge.net
Cc: linux-kernel@vger.kernel.org
Subject: question on generic gpio interface
Date: Fri, 13 Apr 2007 22:51:27 +0200	[thread overview]
Message-ID: <38b2ab8a0704131351la5085vf0ab58e85cf49879@mail.gmail.com> (raw)

Hi,

I'm trying to port my old gpio code to the generic one to see if it
can fit my needs.

The gpio controller is a home made one and has a really weird
interface. It has several registers to read the gpio status, to
configure gpio directions, or to configure if a gpio can trigger an
interrupt and on which event (level or edge). All gpios use the same
IRQ and a gpio controller register allows to read which gpio has
triggered the interrupt.

Now the question is how should irq_to_gpio()  work ? Is it supposed to
be called only when a gpio interrupt occure ?

Another question is how can I specify if a gpio interrupt trigger on
level or on edge ?

thanks
-- 
Francis

             reply	other threads:[~2007-04-13 20:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-13 20:51 Francis Moreau [this message]
2007-04-13 22:43 ` David Brownell
2007-04-16 10:03   ` Francis Moreau
2007-04-16 13:46     ` David Brownell
2007-04-17  7:04       ` Francis Moreau
2007-04-17 16:42         ` David Brownell
2007-04-19  8:05           ` Francis Moreau
2007-04-19 18:06             ` David Brownell

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=38b2ab8a0704131351la5085vf0ab58e85cf49879@mail.gmail.com \
    --to=francis.moro@gmail.com \
    --cc=dbrownell@users.sourceforge.net \
    --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®