Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: rn5t618: Fix IRQ trigger by changing it to level mode

During more massive generation of interrupts, the IRQ got stuck,
and the subdevices did not see any new interrupts. That happens
especially at wonky USB supply in combination with ADC reads.
To fix that trigger the IRQ at level low instead of falling edge.

Fixes: 0c81604516af ("mfd: rn5t618: Add IRQ support")
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Andreas Kemnade and committed by
Lee Jones
a1649a52 bd8a0974

+1 -1
+1 -1
drivers/mfd/rn5t618.c
··· 107 107 108 108 ret = devm_regmap_add_irq_chip(rn5t618->dev, rn5t618->regmap, 109 109 rn5t618->irq, 110 - IRQF_TRIGGER_FALLING | IRQF_ONESHOT, 110 + IRQF_TRIGGER_LOW | IRQF_ONESHOT, 111 111 0, irq_chip, &rn5t618->irq_data); 112 112 if (ret) 113 113 dev_err(rn5t618->dev, "Failed to register IRQ chip\n");