Skip to contentSkip to conversation

extcon: max8997: Use irq mask IRQF_ONESHOT

PATCH New Vasyl Gomonovych 1 participant 1 message Jul 25, 2019 External connector subsystem (extcon)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extcon: max8997: Use irq mask IRQF_ONESHOT

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

---
 drivers/extcon/extcon-max8997.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/extcon/extcon-max8997.c +1 -1
index 172e116ac1ce..c347365242d2 100644
@@ -660,7 +660,7 @@ static int max8997_muic_probe(struct platform_device *pdev)
 
 		ret = request_threaded_irq(virq, NULL,
 				max8997_muic_irq_handler,
-				IRQF_NO_SUSPEND,
+				IRQF_NO_SUSPEND | IRQF_ONESHOT,
 				muic_irq->name, info);
 		if (ret) {
 			dev_err(&pdev->dev,
Signature · 1 line
2.17.1