devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] gpio: mcp23s08: request a shared interrupt
@ 2014-11-17  8:38 Alexander Stein
  2014-11-17  8:38 ` [PATCH 2/3] gpio: mcp23s08: Add simple IRQ support for SPI devices Alexander Stein
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Alexander Stein @ 2014-11-17  8:38 UTC (permalink / raw)
  To: Linus Walleij, Rob Herring, Pawel Moll
  Cc: Alexander Stein, devicetree, linux-gpio

Request a shared interrupt when requesting a mcp23s08 GPIO interrupt.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
---
 drivers/gpio/gpio-mcp23s08.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-mcp23s08.c b/drivers/gpio/gpio-mcp23s08.c
index d5e9586..9295b6e 100644
--- a/drivers/gpio/gpio-mcp23s08.c
+++ b/drivers/gpio/gpio-mcp23s08.c
@@ -485,7 +485,8 @@ static int mcp23s08_irq_setup(struct mcp23s08 *mcp)
 		return -ENODEV;
 
 	err = devm_request_threaded_irq(chip->dev, mcp->irq, NULL, mcp23s08_irq,
-					IRQF_TRIGGER_LOW | IRQF_ONESHOT,
+					IRQF_TRIGGER_LOW | IRQF_ONESHOT |
+					IRQF_SHARED,
 					dev_name(chip->dev), mcp);
 	if (err != 0) {
 		dev_err(chip->dev, "unable to request IRQ#%d: %d\n",
-- 
2.0.4


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-11-28 15:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-17  8:38 [PATCH 1/3] gpio: mcp23s08: request a shared interrupt Alexander Stein
2014-11-17  8:38 ` [PATCH 2/3] gpio: mcp23s08: Add simple IRQ support for SPI devices Alexander Stein
2014-11-27 13:52   ` Linus Walleij
2014-11-17  8:38 ` [PATCH 3/3] gpio: mcp23s08: Add option to configure IRQ as active high Alexander Stein
2014-11-27 13:58   ` Linus Walleij
2014-11-27 14:36     ` Alexander Stein
2014-11-28 15:39       ` Linus Walleij
2014-11-27 13:51 ` [PATCH 1/3] gpio: mcp23s08: request a shared interrupt 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).