* Nagging free/reclaim gpio's
@ 2010-08-30 18:25 Philip Balister
2010-08-30 18:54 ` Felipe Balbi
0 siblings, 1 reply; 3+ messages in thread
From: Philip Balister @ 2010-08-30 18:25 UTC (permalink / raw)
To: linux-omap
I've got a module that claims gpio's when it is loaded and frees them
when it is unloaded. It looks like something goes wrong when I free them:
gpio_unexport: gpio144 status -22
gpio_unexport: gpio146 status -22
gpio_unexport: gpio14 status -22
gpio_unexport: gpio21 status -22
gpio_unexport: gpio22 status -22
gpio_unexport: gpio23 status -22
Then when I try to reclaim them I get this:
gpio_request: gpio-175 (sysfs) status -16
export_store: status -16
gpio_request: gpio-175 (sysfs) status -16
export_store: status -16
gpio_request: gpio-114 (sysfs) status -16
export_store: status -16
gpio_request: gpio-114 (sysfs) status -16
export_store: status -16
gpio_request: gpio-173 (sysfs) status -16
export_store: status -16
gpio_request: gpio-173 (sysfs) status -16
export_store: status -16
This has to be silly, but I can't find the problem. Everything works
fine, I just would like the messages to go away :)
Philip
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Nagging free/reclaim gpio's
2010-08-30 18:25 Nagging free/reclaim gpio's Philip Balister
@ 2010-08-30 18:54 ` Felipe Balbi
[not found] ` <4C7C0B2B.6080407@balister.org>
0 siblings, 1 reply; 3+ messages in thread
From: Felipe Balbi @ 2010-08-30 18:54 UTC (permalink / raw)
To: Philip Balister; +Cc: linux-omap
Hi,
On Mon, 30 Aug 2010 14:25:39 -0400, Philip Balister <philip@balister.org>
wrote:
> I've got a module that claims gpio's when it is loaded and frees them
> when it is unloaded. It looks like something goes wrong when I free
them:
>
> gpio_unexport: gpio144 status -22
> gpio_unexport: gpio146 status -22
> gpio_unexport: gpio14 status -22
> gpio_unexport: gpio21 status -22
> gpio_unexport: gpio22 status -22
> gpio_unexport: gpio23 status -22
this is telling you, you have entered invalid
arguments to gpio_unexport.
> Then when I try to reclaim them I get this:
>
> gpio_request: gpio-175 (sysfs) status -16
> export_store: status -16
> gpio_request: gpio-175 (sysfs) status -16
> export_store: status -16
> gpio_request: gpio-114 (sysfs) status -16
> export_store: status -16
> gpio_request: gpio-114 (sysfs) status -16
> export_store: status -16
> gpio_request: gpio-173 (sysfs) status -16
> export_store: status -16
> gpio_request: gpio-173 (sysfs) status -16
> export_store: status -16
>
>
> This has to be silly, but I can't find the problem. Everything works
> fine, I just would like the messages to go away :)
it's telling you that the gpio is busy, claimed by sysfs usage,
so you can't claim it again.
--
balbi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Nagging free/reclaim gpio's
[not found] ` <4C7C0B2B.6080407@balister.org>
@ 2010-08-31 5:52 ` Felipe Balbi
0 siblings, 0 replies; 3+ messages in thread
From: Felipe Balbi @ 2010-08-31 5:52 UTC (permalink / raw)
To: Philip Balister; +Cc: linux-omap
Hi,
On Mon, 30 Aug 2010 15:48:59 -0400, Philip Balister <philip@balister.org>
wrote:
>> this is telling you, you have entered invalid
>> arguments to gpio_unexport.
>
> I'm calling gpio_free, it must then be calling gpio_unexport for me ...
yes, but please always keep the list in Cc.
--
balbi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-08-31 5:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-30 18:25 Nagging free/reclaim gpio's Philip Balister
2010-08-30 18:54 ` Felipe Balbi
[not found] ` <4C7C0B2B.6080407@balister.org>
2010-08-31 5:52 ` Felipe Balbi
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.