gpio: lynxpoint: Setup correct IRQ handlers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 18 Nov 2019 18:02:51 +0000 (20:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Jan 2020 18:18:20 +0000 (19:18 +0100)
commit3a2d6bc5aa9e163b67786310c7b5c8ed669e8f74
tree8d23f17f8118fd405d4c85b933e796ba24560006
parent00ae1761fab3b3fdeb703e5aa85aca0bbeda8e5c
gpio: lynxpoint: Setup correct IRQ handlers

[ Upstream commit e272f7ec070d212b9301d5a465bc8952f8dcf908 ]

When commit 75e99bf5ed8f ("gpio: lynxpoint: set default handler to be
handle_bad_irq()") switched default handler to be handle_bad_irq() the
lp_irq_type() function remained untouched. It means that even request_irq()
can't change the handler and we are not able to handle IRQs properly anymore.
Fix it by setting correct handlers in the lp_irq_type() callback.

Fixes: 75e99bf5ed8f ("gpio: lynxpoint: set default handler to be handle_bad_irq()")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20191118180251.31439-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-lynxpoint.c