diff options
author | Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz> | 2020-07-03 04:18:30 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2020-07-12 00:09:12 +0300 |
commit | 94c70241efbb1e7e008d433d3b020808f1984330 (patch) | |
tree | f233e34f51f7f8b0c47ed3ae2d2497cd21df08b2 /drivers/gpu | |
parent | 5f4962dd55d86d6a3ba5ddbfaf2d793e3b676a20 (diff) | |
download | linux-94c70241efbb1e7e008d433d3b020808f1984330.tar.xz |
pinctrl: nsp: Set irq handler based on trig type
Rather than always using handle_simple_irq() as the gpio_irq_chip
handler, set a more appropriate handler based on the IRQ trigger type
requested. This is important for level triggered interrupts which need
to be masked during handling. Also, fix the interrupt acknowledge so
that it clears only one interrupt instead of all interrupts which are
currently active. Finally there is no need to clear the interrupt during
the interrupt handler, since the edge-triggered handler will do that for
us.
Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Link: https://lore.kernel.org/r/20200703011830.15655-1-mark.tomlinson@alliedtelesis.co.nz
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpu')
0 files changed, 0 insertions, 0 deletions