* [PATCH] gpio: 104-idi-48: Allow IRQ sharing
@ 2016-01-20 18:57 William Breathitt Gray
2016-01-28 8:43 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: William Breathitt Gray @ 2016-01-20 18:57 UTC (permalink / raw)
To: linus.walleij, gnurou; +Cc: linux-gpio, linux-kernel
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gpio: 104-idi-48: Allow IRQ sharing
2016-01-20 18:57 [PATCH] gpio: 104-idi-48: Allow IRQ sharing William Breathitt Gray
@ 2016-01-28 8:43 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2016-01-28 8:43 UTC (permalink / raw)
To: William Breathitt Gray
Cc: Alexandre Courbot, linux-gpio@vger.kernel.org,
linux-kernel@vger.kernel.org
On Wed, Jan 20, 2016 at 7:57 PM, William Breathitt Gray
<vilhelm.gray@gmail.com> wrote:
> 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>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-28 8:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-20 18:57 [PATCH] gpio: 104-idi-48: Allow IRQ sharing William Breathitt Gray
2016-01-28 8:43 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).