From: Russell King Date: Fri, 4 Feb 2011 09:19:46 +0000 (+0000) Subject: ARM: mmci: avoid reporting too many completed bytes on fifo overrun X-Git-Tag: v2.6.39-rc1~435^3^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8afc9d59ce1100d3f7704e86fda5a25361c45bf;p=pandora-kernel.git ARM: mmci: avoid reporting too many completed bytes on fifo overrun The data counter counts the number of bytes transferred on the MMC bus. When a FIFO overrun occurs, we will not have transferred a FIFOs-worth of data to memory, and so the data counter will be a FIFOs-worth ahead. If this occurs on a block boundary, we will report one too many sectors as successful. Fix this. Acked-by: Linus Walleij Signed-off-by: Russell King --- Reading git-diff-tree failed