linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm pxa: remove "direction input" forcing for IRQ GPIOs
@ 2009-11-17 11:21 Rodolfo Giometti
  2009-11-17 11:44 ` Daniel Mack
  0 siblings, 1 reply; 15+ messages in thread
From: Rodolfo Giometti @ 2009-11-17 11:21 UTC (permalink / raw)
  To: linux-arm-kernel

PXA CPUs may use their GPIOs as IRQ lines even if they are selected as
outputs (see for example figure 24-1 into PXA27x Processor Family
Developer's Manual). So forcing GPIOs IRQ lines as inputs is not
correct.

Programmers should set up GPIOs direction according to their usage and
the function pxa_gpio_irq_type() should simply enable the IRQ
detection.

Signed-off-by: Rodolfo Giometti <giometti@linux.it>
Cc: raffaele.recalcati at bticino.it
---
 arch/arm/plat-pxa/gpio.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/arch/arm/plat-pxa/gpio.c b/arch/arm/plat-pxa/gpio.c
index 98548c6..3f17221 100644
--- a/arch/arm/plat-pxa/gpio.c
+++ b/arch/arm/plat-pxa/gpio.c
@@ -176,13 +176,6 @@ static int pxa_gpio_irq_type(unsigned int irq, unsigned int type)
 		type = IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING;
 	}
 
-	gpdr = __raw_readl(c->regbase + GPDR_OFFSET);
-
-	if (__gpio_is_inverted(gpio))
-		__raw_writel(gpdr | mask,  c->regbase + GPDR_OFFSET);
-	else
-		__raw_writel(gpdr & ~mask, c->regbase + GPDR_OFFSET);
-
 	if (type & IRQ_TYPE_EDGE_RISING)
 		c->irq_edge_rise |= mask;
 	else
-- 
1.6.3.3

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

end of thread, other threads:[~2009-11-17 19:28 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-17 11:21 [PATCH] arm pxa: remove "direction input" forcing for IRQ GPIOs Rodolfo Giometti
2009-11-17 11:44 ` Daniel Mack
2009-11-17 12:05   ` Rodolfo Giometti
2009-11-17 12:12     ` Eric Miao
2009-11-17 12:34     ` Daniel Mack
2009-11-17 12:37       ` Rodolfo Giometti
2009-11-17 12:43         ` Daniel Mack
2009-11-17 12:59           ` Rodolfo Giometti
2009-11-17 13:06             ` Daniel Mack
2009-11-17 13:16               ` Rodolfo Giometti
2009-11-17 14:38               ` Rodolfo Giometti
2009-11-17 17:11                 ` Daniel Mack
2009-11-17 18:02                   ` Rodolfo Giometti
2009-11-17 19:28                     ` Russell King - ARM Linux
2009-11-17 17:00   ` H Hartley Sweeten

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).