mmc: davinci: Eliminate spurious interrupts
authorIdo Yariv <ido@wizery.com>
Sun, 11 Mar 2012 21:39:58 +0000 (23:39 +0200)
committerChris Ball <cjb@laptop.org>
Tue, 27 Mar 2012 16:20:11 +0000 (12:20 -0400)
commitbe7b5622e608189894c2c440c3fb0138f122071f
treea8ebaad47cc471e1c01d66df697d93aa57d8cd54
parent1f84b71b3fa834faa87e14c8dc5d5a7c1fa084e8
mmc: davinci: Eliminate spurious interrupts

The davinci mmc interrupt handler fills the fifo, as long as the DXRDY
or DRRDY bits are set in the status register.

If interrupts fire during this loop, they will be handled by the
handler, but the interrupt controller will still buffer these. As a
result, the handler will be called again to serve these needlessly. In
order to avoid these spurious interrupts, keep interrupts masked while
filling the fifo.

Signed-off-by: Ido Yariv <ido@wizery.com>
Tested-by: Rajashekhara, Sudhakar <sudhakar.raj@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/davinci_mmc.c