ARM: mmci: avoid unnecessary switch to data available PIO interrupts
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 27 Jan 2011 09:50:13 +0000 (09:50 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 4 Feb 2011 13:25:48 +0000 (13:25 +0000)
commitc4d877c1b3df58d89f01d7b211f58b944356eea3
tree57ac31cbfd06d24cd2d841e22f3fe4c6b83dd124
parent7d7aa23cf0700f4025cb61bd1ac517ccf79bd460
ARM: mmci: avoid unnecessary switch to data available PIO interrupts

We don't need to switch to data available interrupts if there's at
least half a FIFO depth worth of data remaining, as we'll still get
the FIFO half full interrupt.  Keep this interrupt masked off until
we have less than half the FIFO depth worth of data remaining.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/host/mmci.c