Skip to contentSkip to conversation

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

PATCH RESEND Applied Andreas Kemnade 2 participants 2 messages May 15, 2021 – May 19, 2021 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 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")
---
 drivers/mfd/rn5t618.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/rn5t618.c +1 -1
index ecddd7b6500e..a852eef1f4d2 100644
@@ -109,7 +109,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");
Signature · 1 line
2.29.2
Applied
#1 lore raw
Quoted 10 lines · Andreas Kemnade

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")
---
 drivers/mfd/rn5t618.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 4 lines
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog