kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* what is the current/ongoing state of userspace access to GPIO?
@ 2017-05-24 11:58 Robert P. J. Day
  2017-05-24 12:49 ` Greg KH
  2017-05-24 12:50 ` Clemens Gruber
  0 siblings, 2 replies; 8+ messages in thread
From: Robert P. J. Day @ 2017-05-24 11:58 UTC (permalink / raw)
  To: kernelnewbies


  ashamed to admit, i haven't been keeping up with this, so AIUI, the
GPIO sysfs interface is deprecated, replaced with character device
files (/dev/gpiochip*) to allow access to GPIO.

  first, i find it curious that this is a move away from sysfs access
to using ioctl(), since i had always thought ioctls were massively
discouraged in new code. is there a document that goes through the
rationale for this change?

  and i notice under Documentation/ABI/ that sysfs-gpio is listed
under "obsolete", while gpio-cdev is listed under "testing". this
seems inconsistent -- how can one be obsolete while the other be
categorized as testing? that just seems strange.

  in any event, is the /dev/gpiochip* interface the recommended
interface now? thanks.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

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

end of thread, other threads:[~2017-05-25 21:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-24 11:58 what is the current/ongoing state of userspace access to GPIO? Robert P. J. Day
2017-05-24 12:49 ` Greg KH
2017-05-24 12:50 ` Clemens Gruber
2017-05-25 19:02   ` Robert P. J. Day
2017-05-25 19:14     ` Greg KH
2017-05-25 19:20       ` Robert P. J. Day
2017-05-25 20:57         ` valdis.kletnieks at vt.edu
2017-05-25 21:17           ` Robert P. J. Day

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).