Fix bring_gpio_interrupt_into_userspace on Debian, #29#30
Fix bring_gpio_interrupt_into_userspace on Debian, #29#30sibradzic wants to merge 1 commit intopiface:masterfrom
Conversation
This introduces GPIO offset detection by checking the dir name starting with gpiochip[0-9]* found in /sys/bus/gpio/devices/gpiochip0/../gpio/. Thec change is tested and confirmed working on Debian Buster 10 and Raspbian 9.9, on boht Raspberry Pi 3B and 3B+
|
Fixes working also with openSUSE Leap 15.1 without it doesn't work. |
|
@illuusio a bit off-topic, but what is the state of device-tree spi support on OpenSUSE Leap? I am asking because it gets quite painful in Debian Buster, relying on hacking and re-compiling in-kernel RPi3+ device-tree... |
If you mean can I enable SPI with 'dtparam=spi' in 'config.txt'? Yes it's working as expected. |
|
If you mean that new kernel tainting spidev not supported then is in all that bad shape as it is in Debian. |
|
Well, in Debian 10 (Buster) kernel 4.19 spidev is ignoring SPI device cause it ain't in device tree. I had to hack & re-compile device tree to enable the thing. The |
This introduces GPIO offset detection by checking the dir name starting with
gpiochip[0-9]*found in/sys/bus/gpio/devices/gpiochip0/../gpio/.The change is tested and confirmed working on Debian Buster 10 and Raspbian 9.9,
on both Raspberry Pi 3B and 3B+