From: Evgeny Boger <boger@contactless.ru>
To: linux-gpio@vger.kernel.org
Subject: Question about non-boolean gpio sysfs values
Date: Sun, 02 Feb 2014 03:35:01 +0400 [thread overview]
Message-ID: <52ED84A5.3050102@contactless.ru> (raw)
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
next reply other threads:[~2014-02-01 23:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-01 23:35 Evgeny Boger [this message]
2014-02-05 1:54 ` Question about non-boolean gpio sysfs values Alexandre Courbot
2014-02-05 13:06 ` Linus Walleij
2014-02-05 13:24 ` Alexandre Courbot
2014-02-05 13:46 ` 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=52ED84A5.3050102@contactless.ru \
--to=boger@contactless.ru \
--cc=linux-gpio@vger.kernel.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.