linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about non-boolean gpio sysfs values
@ 2014-02-01 23:35 Evgeny Boger
  2014-02-05  1:54 ` Alexandre Courbot
  0 siblings, 1 reply; 5+ messages in thread
From: Evgeny Boger @ 2014-02-01 23:35 UTC (permalink / raw)
  To: linux-gpio

Hello,

I'm now getting non-boolean values from gpio sysfs interface on 3.13, 
like this

root@wirenboard:~# cat /sys/class/gpio/gpio16/value
65536

(I'm working with imx23 soc which is handled by gpio-generic.c driver)

Looks like these weird non-boolean values appeared after this commit: 
https://github.com/torvalds/linux/commit/79a9becda8940deb2274b5aa4577c86d52ee7ecb 
.


1) Is it an expected behavior or not?

2) If it's not the case, which one of these should be fixed?
   a) bgpio_get in gpio-generic.c to return only boolean values
or
   b) gpio_value_show so only the sysfs interface will be affected
or
  c) gpiod_get_value and gpiod_get_value_cansleep functions


--
  Thanks,
    Evgeny Boger









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

end of thread, other threads:[~2014-02-05 13:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-01 23:35 Question about non-boolean gpio sysfs values Evgeny Boger
2014-02-05  1:54 ` Alexandre Courbot
2014-02-05 13:06   ` Linus Walleij
2014-02-05 13:24     ` Alexandre Courbot
2014-02-05 13:46       ` 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).