public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* gpiolib: per-gpio edges count
@ 2012-04-04  8:53 Jean Pihet
  2012-04-04 14:49 ` Jean Pihet
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Pihet @ 2012-04-04  8:53 UTC (permalink / raw)
  To: Grant Likely, Linus Walleij, linux-kernel

Hi Grant, Linus,

I would like to know if it is possible to get the edges count on a GPIO pin.
I was hoping to get it by configuring the pin as input with an edge
trigger but on OMAP there is only one irq line per controller (which
controls 32 pins).
Btw I am using a Beaglebone with OMAP AM3358.

The options I see now are:
- use select/poll on the value in sysfs and count the edges in user
space. This looks like overkill for the task though.
- hack the gpiolib code to export an irq count and timestamp to sysfs.

What do you think?

Regards,
Jean Pihet

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-10 10:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-04  8:53 gpiolib: per-gpio edges count Jean Pihet
2012-04-04 14:49 ` Jean Pihet
2012-04-07  3:13   ` Grant Likely
2012-04-10 10:07     ` Jean Pihet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox