linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* GPIO sysfs : set a wake source
@ 2013-05-09 12:59 Robert Jarzmik
  2013-05-14  9:29 ` Linus Walleij
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Jarzmik @ 2013-05-09 12:59 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Linus,

I was thinking on how to remove all "gpio_request()" from my board code
(arch/arm/mach-pxa/mioa701.c).

I have a small difficulty with the functionality provided by gpiolib in
userspace. This is what I need :
 - define a gpio as an input
 - define this gpio to be an interrupt source
 - define this interrupt to be a wake-up source

In kernel, I had : gpio_request(), request_irq(), and gpio_set_wake() (in
mioa701, this ends up in gsm_on_irq()).

In userspace I have :
 - echo 113 > /sys/class/gpio/export
 - echo in > /sys/class/gpio/gpio113/direction
 - echo both > /sys/class/gpio/gpio113/edge

And here, I don't know how to trigger a call to gpio_set_wake(113, 1). Do you
provide that API somewhere in sysfs that I didn't find ? Because that's what I
need to obliterate gpio calls from my board code.

Cheers.

-- 
Robert

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

end of thread, other threads:[~2013-05-20 18:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 12:59 GPIO sysfs : set a wake source Robert Jarzmik
2013-05-14  9:29 ` Linus Walleij
2013-05-14 16:08   ` Stephen Warren
2013-05-16 19:39     ` Robert Jarzmik
2013-05-16 19:49       ` Stephen Warren
2013-05-17  3:18         ` Robert Jarzmik
2013-05-17  6:24       ` Linus Walleij
2013-05-18  9:18         ` Robert Jarzmik
2013-05-20 18:25           ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).