diff options
| author | Yusuke Goda <[email protected]> | 2010-09-09 16:37:39 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-09-09 18:57:23 -0700 |
| commit | b78d6c5f51935ba89df8db33a57bacb547aa7325 (patch) | |
| tree | 7cd4c5bb1d9f7d5f3c0815705ce8d52d4c81463a /arch/powerpc/lib/code-patching.c | |
| parent | 31583bb0cf6cc40f2a468a4d2f3b9cbefd24f891 (diff) | |
tmio_mmc: don't clear unhandled pending interrupts
Previously, it was possible for ack_mmc_irqs() to clear pending interrupt
bits in the CTL_STATUS register, even though the interrupt handler had not
been called. This was because of a race that existed when doing a
read-modify-write sequence on CTL_STATUS. After the read step in this
sequence, if an interrupt occurred (causing one of the bits in CTL_STATUS
to be set) the write step would inadvertently clear it.
Observed with the TMIO_STAT_RXRDY bit together with CMD53 on AR6002 and
BCM4318 SDIO cards in polled mode.
This patch eliminates this race by only writing to CTL_STATUS and clearing
the interrupts that were passed as an argument to ack_mmc_irqs()."
[[email protected]: rewrote changelog]
Signed-off-by: Yusuke Goda <[email protected]>
Acked-by: Magnus Damm <[email protected]>"
Tested-by: Arnd Hannemann <[email protected]>"
Acked-by: Ian Molton <[email protected]>
Cc: Matt Fleming <[email protected]>
Cc: Samuel Ortiz <[email protected]>
Cc: Paul Mundt <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions