Skip to contentSkip to conversation

extcon: max77843: Add IRQ_ONESHOT mask

PATCH New Vasyl Gomonovych 1 participant 1 message Jul 25, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extcon: max77843: Add IRQ_ONESHOT mask

Do not fire irq again until thread done
This issue was found by code inspection
Coccicheck irqf_oneshot.cocci

---
 drivers/extcon/extcon-max77843.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/extcon/extcon-max77843.c +2 -1
index a343a6ef3506..42b14c333b1c 100644
@@ -905,7 +905,8 @@ static int max77843_muic_probe(struct platform_device *pdev)
 		muic_irq->virq = virq;
 
 		ret = devm_request_threaded_irq(&pdev->dev, virq, NULL,
-				max77843_muic_irq_handler, IRQF_NO_SUSPEND,
+				max77843_muic_irq_handler,
+				IRQF_NO_SUSPEND | IRQF_ONESHOT,
 				muic_irq->name, info);
 		if (ret) {
 			dev_err(&pdev->dev,
Signature · 1 line
2.17.1