diff options
author | Andreas Kemnade <andreas@kemnade.info> | 2021-05-15 22:55:18 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-06-02 10:50:00 +0100 |
commit | a1649a5260631979c68e5b2012f60f90300e646f (patch) | |
tree | 94b842201659d92e367119abd6af69dca641bccc /drivers/mfd | |
parent | bd8a0974430638f2c79cb411303d176230c89e6e (diff) | |
download | linux-a1649a5260631979c68e5b2012f60f90300e646f.tar.bz2 |
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/rn5t618.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/rn5t618.c b/drivers/mfd/rn5t618.c index 6ed04e6dbc78..384acb459427 100644 --- a/drivers/mfd/rn5t618.c +++ b/drivers/mfd/rn5t618.c @@ -107,7 +107,7 @@ static int rn5t618_irq_init(struct rn5t618 *rn5t618) ret = devm_regmap_add_irq_chip(rn5t618->dev, rn5t618->regmap, rn5t618->irq, - IRQF_TRIGGER_FALLING | IRQF_ONESHOT, + IRQF_TRIGGER_LOW | IRQF_ONESHOT, 0, irq_chip, &rn5t618->irq_data); if (ret) dev_err(rn5t618->dev, "Failed to register IRQ chip\n"); |