[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1401995603-25997-1-git-send-email-andrew.ruder@elecsyscorp.com>
Date: Thu, 5 Jun 2014 14:13:23 -0500
From: Andrew Ruder <andrew.ruder@...csyscorp.com>
To: linux-gpio@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, gnurou@...il.com,
linus.walleij@...aro.org,
Andrew Ruder <andrew.ruder@...csyscorp.com>
Subject: [PATCH] gpio-pxa: gpio0 and gpio1 support on dt
pxa_gpio_probe() has some issues supporting the gpio0 and gpio1
interrupts under device-tree - it never actually sets up the chain
handler to get interrupts on edge detect for GPIO0 and GPIO1.
Signed-off-by: Andrew Ruder <andrew.ruder@...csyscorp.com>
---
drivers/gpio/gpio-pxa.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c
index 42e6e64..19f1a95 100644
--- a/drivers/gpio/gpio-pxa.c
+++ b/drivers/gpio/gpio-pxa.c
@@ -649,6 +649,11 @@ static int pxa_gpio_probe(struct platform_device *pdev)
handle_edge_irq);
set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
}
+ } else {
+ if (irq0 > 0)
+ irq_set_chained_handler(irq0, pxa_gpio_demux_handler);
+ if (irq1 > 0)
+ irq_set_chained_handler(irq1, pxa_gpio_demux_handler);
}
irq_set_chained_handler(irq_mux, pxa_gpio_demux_handler);
--
1.9.0.rc3.12.gbc97e2d
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists