mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
gpio: 104-idio-16: Disable IRQ on device probe
IRQ should be disabled on device probe so that the device IRQ is in a known starting state. If IRQ is not disabled, interrupts may be reported as handled by the IRQ handler, despite no irq_unmask calls made by the user. Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
d9110e9ce7
commit
fb50cdfeed
1 changed files with 3 additions and 0 deletions
|
@ -242,6 +242,9 @@ static int __init idio_16_probe(struct platform_device *pdev)
|
|||
goto err_gpio_register;
|
||||
}
|
||||
|
||||
/* Disable IRQ by default */
|
||||
outb(0, base + 2);
|
||||
|
||||
err = gpiochip_irqchip_add(&idio16gpio->chip, &idio_16_irqchip, 0,
|
||||
handle_edge_irq, IRQ_TYPE_NONE);
|
||||
if (err) {
|
||||
|
|
Loading…
Reference in a new issue