]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ARM] 3378/1: ixp2000: fix gpio interrupt handling
authorLennert Buytenhek <buytenh@wantstofly.org>
Wed, 22 Mar 2006 20:14:09 +0000 (20:14 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 22 Mar 2006 20:14:09 +0000 (20:14 +0000)
commitbd115ea007e671e96b8b53c2e0e885103d39fd40
treee33f6a612f0a4dcb447d2bd3ce4678f928d94838
parentbec1b8193651ea4394cc4d6e18152cb83e735f93
[ARM] 3378/1: ixp2000: fix gpio interrupt handling

Patch from Lennert Buytenhek

ixp2000 used to initially mark GPIO interrupts as invalid, and not
mark them valid until set_irq_type() was called, but this doesn't
work if you want to use request_irq() with the SA_TRIGGER_* flags.

So, just mark the GPIO interrupts valid from the beginning.  We
configure GPIOs as inputs when set_irq_type() is called anyway, so
this shouldn't be a problem.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-ixp2000/core.c