Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1313443

[PATCH] gpio: 104-idi-48: Allow IRQ sharing

From William Breathitt Gray <vilhelm.gray@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] gpio: 104-idi-48: Allow IRQ sharing
Date 2016-01-20 20:00 +0100
Message-ID <qT693-27H-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
---
 drivers/gpio/gpio-104-idi-48.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-104-idi-48.c b/drivers/gpio/gpio-104-idi-48.c
index 52eed32..285a075 100644
--- a/drivers/gpio/gpio-104-idi-48.c
+++ b/drivers/gpio/gpio-104-idi-48.c
@@ -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;
-- 
2.4.10

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] gpio: 104-idi-48: Allow IRQ sharing William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-01-20 20:00 +0100

csiph-web