summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-tz1090-pdc.c
diff options
context:
space:
mode:
authorGregory CLEMENT2015-04-02 17:11:11 +0200
committerLinus Walleij2015-04-08 16:35:07 +0200
commit61819549f572edd7fce53f228c0d8420cdc85f71 (patch)
tree236a81ed3d9cc0bf9998e9aac6215ac43f3be45f /drivers/gpio/gpio-tz1090-pdc.c
parentgpio: split GPIO drivers in submenus (diff)
downloadkernel-qcow2-linux-61819549f572edd7fce53f228c0d8420cdc85f71.tar.gz
kernel-qcow2-linux-61819549f572edd7fce53f228c0d8420cdc85f71.tar.xz
kernel-qcow2-linux-61819549f572edd7fce53f228c0d8420cdc85f71.zip
gpio: mvebu: Fix mask/unmask managment per irq chip type
Level IRQ handlers and edge IRQ handler are managed by tow different sets of registers. But currently the driver uses the same mask for the both registers. It lead to issues with the following scenario: First, an IRQ is requested on a GPIO to be triggered on front. After, this an other IRQ is requested for a GPIO of the same bank but triggered on level. Then the first one will be also setup to be triggered on level. It leads to an interrupt storm. The different kind of handler are already associated with two different irq chip type. With this patch the driver uses a private mask for each one which solves this issue. It has been tested on an Armada XP based board and on an Armada 375 board. For the both boards, with this patch is applied, there is no such interrupt storm when running the previous scenario. This bug was already fixed but in a different way in the legacy version of this driver by Evgeniy Dushistov: 9ece8839b1277fb9128ff6833411614ab6c88d68 "ARM: orion: Fix for certain sequence of request_irq can cause irq storm". The fact the new version of the gpio drive could be affected had been discussed there: http://thread.gmane.org/gmane.linux.ports.arm.kernel/344670/focus=364012 Reported-by: Evgeniy A. Dushistov <dushistov@mail.ru> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Cc: <stable@vger.kernel.org> # v3.7 + Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-tz1090-pdc.c')
0 files changed, 0 insertions, 0 deletions