From: Daniel Santos <danielfsantos@att.net>
To: linux-gpio <linux-gpio@vger.kernel.org>
Subject: What is the correct way to map an input gpio to an irq/event/notifier?
Date: Sat, 24 Aug 2013 15:30:15 -0500 [thread overview]
Message-ID: <521917D7.5060801@att.net> (raw)
Hello guys. I'm new to this list and have been working on a driver for
the MCP2210 "USB-to-SPI bridge w/GPIO" (my first driver). I haven't
implemented the polling of its gpios just yet (I just finished the
interface where gpio values are retrieved on-demand), but I have another
issue looming.
In addition to the MCP2210 driver, I'm planning on having an spi
protocol driver for the ADNS-9800 chip that will be connected to the
MCP2210, but which also has an interrupt output pin (to tell its host
that it needs servicing). I've got all of the SPI stuff worked out, but
I don't know the proper way to connect that gpio to the ADNS-9800
driver. I suppose my options are:
1. Pass the ADNS-9800 the gpio number and let the ADNS-9800 poll it
2. Have my MCP2210 driver poll its gpios its self and notify consumers
of changes through some interface (soft irqs?)
Thanks in advance!
Daniel Santos
reply other threads:[~2013-08-24 20:36 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=521917D7.5060801@att.net \
--to=danielfsantos@att.net \
--cc=daniel.santos@pobox.com \
--cc=linux-gpio@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.