From: robert.jarzmik@free.fr (Robert Jarzmik)
To: linux-arm-kernel@lists.infradead.org
Subject: GPIO sysfs : set a wake source
Date: Thu, 09 May 2013 14:59:47 +0200 [thread overview]
Message-ID: <87fvxwia0s.fsf@free.fr> (raw)
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
next reply other threads:[~2013-05-09 12:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-09 12:59 Robert Jarzmik [this message]
2013-05-14 9:29 ` GPIO sysfs : set a wake source 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
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=87fvxwia0s.fsf@free.fr \
--to=robert.jarzmik@free.fr \
--cc=linux-arm-kernel@lists.infradead.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.