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)
commit95f0972c7e4cbf3fc68160131c5ac2f033481d00
tree5fe75c4fe7e8700ebd68523a61af3d179ef5ef3c
parentf8323b6bb2cc7d26941d4838dd4375952980a88a
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
This page took 0.026783 seconds and 5 git commands to generate.