]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
pinctrl-bcm2835: Fix interrupt handling for GPIOs 28-31 and 46-53
authorPhil Elwell <phil@raspberrypi.org>
Tue, 24 Feb 2015 13:40:50 +0000 (13:40 +0000)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 9 Mar 2018 15:21:07 +0000 (12:21 -0300)
commit5ab8c9b2762bb3e714696d61b67b8cee1d2ad488
treec1e124ce3c4d69a1af00d5042ffe2df6449cba86
parent16b662e57ef30bedec676cdd3127a3fa73ad8324
pinctrl-bcm2835: Fix interrupt handling for GPIOs 28-31 and 46-53

Contrary to the documentation, the BCM2835 GPIO controller actually has
four interrupt lines - one each for the three IRQ groups and one common. Rather
confusingly, the GPIO interrupt groups don't correspond directly with the GPIO
control banks. Instead, GPIOs 0-27 generate IRQ GPIO0, 28-45 GPIO1 and
46-53 GPIO2.

Awkwardly, the GPIOS for IRQ GPIO1 straddle two 32-entry GPIO banks, so it is
cleaner to split out a function to process the interrupts for a single GPIO
bank.

This bug has only just been observed because GPIOs above 27 can only be
accessed on an old Raspberry Pi with the optional P5 header fitted, where
the pins are often used for I2S instead.
drivers/pinctrl/bcm/pinctrl-bcm2835.c