Archived
14
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/arch
Matt Reimer e2f04e1894 [ARM] 3546/1: PATCH: subtle lost interrupts bug on i.MX
Patch from Matt Reimer

There is a subtle bug in the GPIO interrupt status register
handling in arch/arm/mach-imx/irq.c:imx_gpio_ack_irq(). The
documentation states that a 1 should be written to the relevant bit to
acknowledge a GPIO interrupt, but that is not what the code does.

The problem is that the |= writes back 1s for all the *other*
interrupts represented in the register, so interrupts could get lost.
For example, if interrupts are pending for GPIO B10 and B12, ISR_B
would have the value 0x00001400. Then when the interrupt code handles
GPIO B10, it eventually calls imx_gpio_ack_irq(IRQ_GPIOB(10)), which
effectively does this:

ISR_B |= 1 << 10;

with the result that (0x00001400 | 0x00000400) is written, clearing
the interrupt status bits for *both* GPIO B10 and B12.

The fix is to write 1s only for the interrupts we want to clear.

The same problem seems to be occurring in the DMA code; this patch
does not address those issues.

Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Matt Reimer <mreimer@vpop.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2006-06-08 22:46:48 +01:00
..
alpha [PATCH] alpha: SMP IRQ routing fix 2006-06-05 12:29:16 -07:00
arm [ARM] 3546/1: PATCH: subtle lost interrupts bug on i.MX 2006-06-08 22:46:48 +01:00
arm26
cris
frv
h8300
i386 Revert "[PATCH] i386/x86_64: Force pci=noacpi on HP XW9300" 2006-05-30 20:32:15 -07:00
ia64 [IA64] one-line cleanup on set_irq_affinity_info 2006-05-17 06:20:59 -07:00
m32r [PATCH] m32r: update switch_to macro for tuning 2006-04-19 09:13:51 -07:00
m68k
m68knommu
mips Merge master.kernel.org:/home/rmk/linux-2.6-serial 2006-06-05 16:23:02 -07:00
parisc [PARISC] Add new entries to the syscall table 2006-04-21 22:20:35 +00:00
powerpc [PATCH] pmf_register_irq_client() gives sleep with locks held warning 2006-06-05 12:29:16 -07:00
ppc ppc: Fix typo in TI_LOCAL_FLAGS definition 2006-05-29 08:42:34 +10:00
s390 [PATCH] s390: fix typo in stop_hz_timer. 2006-05-25 12:09:55 -07:00
sh
sh64
sparc [SPARC]: Add robust futex syscall entries. 2006-05-21 21:22:53 -07:00
sparc64 [SPARC64]: Fix missing fold at end of checksums. 2006-06-04 21:32:01 -07:00
um [PATCH] uml: add -ffreestanding to CFLAGS 2006-06-05 12:29:17 -07:00
v850
x86_64 [PATCH] x86_64: Don't do syscall exit tracing twice 2006-05-30 20:31:06 -07:00
xtensa