]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: intel: Add support for multiple GPIO chips sharing the interrupt
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 21 Oct 2015 10:08:43 +0000 (13:08 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 27 Oct 2015 12:27:49 +0000 (13:27 +0100)
commit2f7cea90b6f4caa5cc402c07ba67a5fbc9f3b7b0
tree316f25621215ac53defbbcf615b78398839523fa
parentd18fb75a52050711c8c0a09528502cbe69d8b857
pinctrl: intel: Add support for multiple GPIO chips sharing the interrupt

On Intel Broxton the GPIO hardware consists of several chips that all share
the parent interrupt. It is not possible to handle this by setting chained
handler for each chip (as they will overwrite each other).

To overcome this we need to request the interrupt using devm_request_irq()
and pass IRQF_SHARED with the flags.

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