]> git.sur5r.net Git - u-boot/commit
mmc: Add multi-block read support to the generic mmc driver
authorAlagu Sankar <alagusankar at embwise.com>
Mon, 25 Oct 2010 14:23:56 +0000 (07:23 -0700)
committerSandeep Paulraj <s-paulraj@ti.com>
Thu, 4 Nov 2010 19:27:25 +0000 (15:27 -0400)
commit4a1a06bc8b21c6787a22458142e3ca3c06935517
tree69c96f566f96e4b8726bdb6f093631401c38955c
parentdef412b6618f5b887b80fcdad6ab4ee2fee0a110
mmc: Add multi-block read support to the generic mmc driver

This patch adds multi-block read support for the generic MMC
driver. Large reads are broken into chunks of 65535 blocks to
ensure that the code works with controllers having a 16 bit block counter.

This patch results in a significant performance improvement.

Time to read a 45 MB file went from 36 seconds to 9 seconds on Overo

Signed-off-by: Steve Sakoman <steve.sakoman@linaro.org>
Tested-by: Steve Sakoman <steve.sakoman@linaro.org>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
drivers/mmc/mmc.c