Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace GPIO sysfs interface for interrupts with GPIO character device #8

Closed
golemparts opened this issue Jul 4, 2018 · 3 comments
Closed
Assignees

Comments

@golemparts
Copy link
Owner

golemparts commented Jul 4, 2018

The GPIO sysfs interface (/sys/class/gpio) has been deprecated, with the relatively new GPIO character device (/dev/gpiochipN) interface offered as a replacement. Since GPIO sysfs is currently used for interrupts, a migration to the GPIO cdev interface needs to happen before GPIO sysfs is removed (after 2020).

As an added benefit, this is also a workaround for a bug in Fedora where GPIO sysfs doesn't properly handle interrupts.

@golemparts golemparts self-assigned this Jul 4, 2018
golemparts added a commit that referenced this issue Jul 7, 2018
@golemparts
Copy link
Owner Author

All of the existing interrupt methods now use the new GPIO character device interface. On Raspbian they're working as intended.

@KuabeM
Copy link

KuabeM commented Jul 8, 2018

As well as on Fedora - thank you, great job!

@golemparts
Copy link
Owner Author

@KuabeM excellent! Thanks for testing on Fedora. 0.8.0 will be released as soon as the PWM and UART modules have been completed and documented, which will likely be later this month. Of course you can always stay on the master branch if you want to move back to Fedora sooner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants