]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: baytrail: Clear interrupt triggering from pins that are in GPIO mode
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 23 Feb 2015 12:53:11 +0000 (14:53 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 6 Mar 2015 11:21:09 +0000 (12:21 +0100)
commit1e9cf439ce7b11b3d1800be0354d689a85aa3a11
tree5fe75c4fe7e8700ebd68523a61af3d179ef5ef3c
parent775de003cf10cdd88e52f1cb29a5edee9de9db54
pinctrl: baytrail: Clear interrupt triggering from pins that are in GPIO mode

If the pin is already configured as GPIO and it has any of the triggering
flags set, we may get spurious interrupts depending on the state of the
pin.

Prevent this by clearing the triggering flags on such pins. However, if the
pin is also configured as "direct IRQ" we leave the flags as is. Otherwise
it will prevent interrupts that are routed directly to IO-APIC.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-baytrail.c