linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: chao.xie@marvell.com (Chao Xie)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/4] ARM: pxa: add irq ack for gpio irq
Date: Fri,  9 Sep 2011 12:18:13 +0800	[thread overview]
Message-ID: <1315541894-19504-3-git-send-email-chao.xie@marvell.com> (raw)
In-Reply-To: <1315541894-19504-1-git-send-email-chao.xie@marvell.com>

For previous pxa3xx and pxa168, pxa9xx, the interrupt controller does
not need any ack for the interrupt.
For next ARM V7 SMP core, it will use GIC, and it need ack for the
interrupt.

Signed-off-by: Chao Xie <chao.xie@marvell.com>
---
 arch/arm/plat-pxa/gpio.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-pxa/gpio.c b/arch/arm/plat-pxa/gpio.c
index 15de09d..66ae80a 100644
--- a/arch/arm/plat-pxa/gpio.c
+++ b/arch/arm/plat-pxa/gpio.c
@@ -19,6 +19,7 @@
 #include <linux/slab.h>
 
 #include <mach/gpio.h>
+#include <asm/mach/irq.h>
 
 int pxa_last_gpio;
 
@@ -206,7 +207,9 @@ static void pxa_gpio_demux_handler(unsigned int irq, struct irq_desc *desc)
 	struct pxa_gpio_chip *c;
 	int loop, gpio, gpio_base, n;
 	unsigned long gedr;
+	struct irq_chip *chip = irq_get_chip(irq);
 
+	chained_irq_enter(chip, desc);
 	do {
 		loop = 0;
 		for_each_gpio_chip(gpio, c) {
@@ -225,6 +228,7 @@ static void pxa_gpio_demux_handler(unsigned int irq, struct irq_desc *desc)
 			}
 		}
 	} while (loop);
+	chained_irq_exit(chip, desc);
 }
 
 static void pxa_ack_muxed_gpio(struct irq_data *d)
-- 
1.7.0.4

  parent reply	other threads:[~2011-09-09  4:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-09  4:18 [PATCH 1/4] ARM: mmp: add irq_disable callback for gpio chip Chao Xie
2011-09-09  3:28 ` Eric Miao
2011-09-09  5:30   ` Chao Xie
2011-09-09  4:18 ` [PATCH 2/4] ARM: mmp: add irq_disable callback for icu chip Chao Xie
2011-09-09  4:18 ` Chao Xie [this message]
2011-09-09  3:22   ` [PATCH 3/4] ARM: pxa: add irq ack for gpio irq Eric Miao
2011-09-09  4:18 ` [PATCH 4/4] ARM: pxa: update gpio number to 192 Chao Xie
2011-09-09  3:28   ` Eric Miao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1315541894-19504-3-git-send-email-chao.xie@marvell.com \
    --to=chao.xie@marvell.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).