Skip to contentSkip to conversation

gpio: 104-idi-48: Allow IRQ sharing

PATCH In review William Breathitt Gray 2 participants 2 messages Jan 20, 2016 – Jan 28, 2016

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

PATCH 1/1 gpio: 104-idi-48: Allow IRQ sharing

The ACCES 104-IDI-48 can differentiate between its own and other devices' interrupt requests. Therefore, IRQ sharing is possible and should be permitted.

---
 drivers/gpio/gpio-104-idi-48.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpio/gpio-104-idi-48.c +2 -1
index 52eed32..285a075 100644
@@ -267,7 +267,8 @@ static int __init idi_48_probe(struct platform_device *pdev)
 		goto err_gpiochip_irqchip_add;
 	}
 
-	err = request_irq(irq, idi_48_irq_handler, 0, name, idi48gpio);
+	err = request_irq(irq, idi_48_irq_handler, IRQF_SHARED, name,
+		idi48gpio);
 	if (err) {
 		dev_err(dev, "IRQ handler registering failed (%d)\n", err);
 		goto err_request_irq;
Signature · 1 line
2.4.10
#1 lore raw
Quoted 5 lines · William Breathitt Gray

The ACCES 104-IDI-48 can differentiate between its own and other devices' interrupt requests. Therefore, IRQ sharing is possible and should be permitted.

Patch applied.

Yours,
Linus Walleij