diff options
author | Phil Reid <preid@electromag.com.au> | 2017-02-20 09:41:45 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-16 10:33:51 +0100 |
commit | 3aec56b819605c0687469bace92064ea75a250c1 (patch) | |
tree | 0d79f2c21a37d309a34329b611c85f53b59ceffc /drivers/hid/hid-picolcd_core.c | |
parent | c52017de0ba6637ccdadae1e89d988fc61c5390a (diff) |
gpio: altera: Use handle_level_irq when configured as a level_high
[ Upstream commit f759921cfbf4847319d197a6ed7c9534d593f8bc ]
When a threaded irq handler is chained attached to one of the gpio
pins when configure for level irq the altera_gpio_irq_leveL_high_handler
does not mask the interrupt while being handled by the chained irq.
This resulting in the threaded irq not getting enough cycles to complete
quickly enough before the irq was disabled as faulty. handle_level_irq
should be used in this situation instead of handle_simple_irq.
In gpiochip_irqchip_add set default handler to handle_bad_irq as
per Documentation/gpio/driver.txt. Then set the correct handler in
the set_type callback.
Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hid/hid-picolcd_core.c')
0 files changed, 0 insertions, 0 deletions