Skip to contentSkip to conversation

extcon: rt8973: Add IRQF_ONESHOT to interrupt flags

PATCH In review Saurabh Sengar 2 participants 2 messages Nov 25, 2015 – Nov 27, 2015 External connector subsystem (extcon)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extcon: rt8973: Add IRQF_ONESHOT to interrupt flags

Add IRQF_ONESHOT if no primary handler is provided for request threaded irq

---
 drivers/extcon/extcon-rt8973a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/extcon/extcon-rt8973a.c +1 -1
index 36bf1d6..e1bb8280 100644
@@ -603,7 +603,7 @@ static int rt8973a_muic_i2c_probe(struct i2c_client *i2c,
 
 		ret = devm_request_threaded_irq(info->dev, virq, NULL,
 						rt8973a_muic_irq_handler,
-						IRQF_NO_SUSPEND,
+						IRQF_NO_SUSPEND | IRQF_ONESHOT,
 						muic_irq->name, info);
 		if (ret) {
 			dev_err(info->dev,
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 14 lines · Saurabh Sengar

Add IRQF_ONESHOT if no primary handler is provided for request threaded irq

---
 drivers/extcon/extcon-rt8973a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/extcon/extcon-rt8973a.c +0 -0
index 36bf1d6..e1bb8280 100644

drivers/extcon/extcon-rt8973a.c static int rt8973a_muic_i2c_probe(struct i2c_client *i2c, · line 609

Quoted 8 lines
drivers/extcon/extcon-rt8973a.c +1 -1
@@ -603,7 +603,7 @@ static int rt8973a_muic_i2c_probe(struct i2c_client *i2c,
 
 		ret = devm_request_threaded_irq(info->dev, virq, NULL,
 						rt8973a_muic_irq_handler,
-						IRQF_NO_SUSPEND,
+						IRQF_NO_SUSPEND | IRQF_ONESHOT,
 						muic_irq->name, info);
 		if (ret) {
 			dev_err(info->dev,

Applied it.

Thanks,
Chanwoo Choi