Commit a1649a52 authored by Andreas Kemnade's avatar Andreas Kemnade Committed by Lee Jones

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: 0c816045 ("mfd: rn5t618: Add IRQ support")
Signed-off-by: default avatarAndreas Kemnade <andreas@kemnade.info>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent bd8a0974
...@@ -107,7 +107,7 @@ static int rn5t618_irq_init(struct rn5t618 *rn5t618) ...@@ -107,7 +107,7 @@ static int rn5t618_irq_init(struct rn5t618 *rn5t618)
ret = devm_regmap_add_irq_chip(rn5t618->dev, rn5t618->regmap, ret = devm_regmap_add_irq_chip(rn5t618->dev, rn5t618->regmap,
rn5t618->irq, rn5t618->irq,
IRQF_TRIGGER_FALLING | IRQF_ONESHOT, IRQF_TRIGGER_LOW | IRQF_ONESHOT,
0, irq_chip, &rn5t618->irq_data); 0, irq_chip, &rn5t618->irq_data);
if (ret) if (ret)
dev_err(rn5t618->dev, "Failed to register IRQ chip\n"); dev_err(rn5t618->dev, "Failed to register IRQ chip\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment