]> git.baikalelectronics.ru Git - kernel.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)
commitcdb7c926ef97a3386d5a7f68a56dc913a573cfc7
treee33f6a612f0a4dcb447d2bd3ce4678f928d94838
parent9d07bb2ce632a7e97f49835827af1bc9887ab517
[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