pinctrl: rp1: Make IRQ usage set a pin to an input - #7526
Conversation
|
Agreed, this is a cleaner and less instrisive approach. But I've added d9118ca to #7522 and with this, it works: Also picked f0d34ae as the remaining drive-by patch from my original PR. |
|
It's issues like this, considering the large number of overlays, that have made me reluctant to enable strict mode in our kernels. But maybe now is the time. |
|
I've started going through all of the overlays now looking for problems. In the meantime, I'd be happy to take the function_is_gpio implementation from your "strict" commit (i.e. without the strict setting) - either as a cut-down version of your commit or just by folding it into mine. |
|
I also had a look and haven't found anything suspicious so far. Anyway Iwill split the commit. |
This is a less invasive solution to the problem that requesting that a GPIO be used as an interrupt from Device Tree (not going via gpio descriptors) does not automatically make it an input. This can lead to interrupt storms. See: raspberrypi#7520 Signed-off-by: Phil Elwell <phil@raspberrypi.com> Co-authored-by: Nicolai Buchwitz <nb@tipi-net.de>
kernel: overlays: Add ramoops-pi5 See: raspberrypi/linux#7518 kernel: input: goodix: Include I2C details in names for the devices See: raspberrypi/linux#7506 kernel: misc: rp1-pio: release DMA channel outside pio->lock See: raspberrypi/linux#7519 kernel: ASoC: hifiberry-studio: add AES CS Mode control (channel status format) See: raspberrypi/linux#7527 kernel: pinctrl: rp1: Make IRQ usage set a pin to an input See: raspberrypi/linux#7526 kernel: drm/vc4: Support frame packed stereo modes See: raspberrypi/linux#7524
kernel: overlays: Add ramoops-pi5 See: raspberrypi/linux#7518 kernel: input: goodix: Include I2C details in names for the devices See: raspberrypi/linux#7506 kernel: misc: rp1-pio: release DMA channel outside pio->lock See: raspberrypi/linux#7519 kernel: ASoC: hifiberry-studio: add AES CS Mode control (channel status format) See: raspberrypi/linux#7527 kernel: pinctrl: rp1: Make IRQ usage set a pin to an input See: raspberrypi/linux#7526 kernel: drm/vc4: Support frame packed stereo modes See: raspberrypi/linux#7524
This is a less invasive solution to the problem that requesting that
a GPIO be used as an interrupt from Device Tree (not going via
gpio descriptors) does not automatically make it an input. This can lead
to interrupt storms.
It relies on there being an implementation of the function_is_gpio
method, hence the inclusion of Nicolai's patch from
#7522.
See: #7520