mmc_test: fix performance tests that go over max_blk_count
authorAdrian Hunter <adrian.hunter@nokia.com>
Fri, 10 Sep 2010 08:33:45 +0000 (11:33 +0300)
committerChris Ball <cjb@laptop.org>
Sat, 23 Oct 2010 13:11:12 +0000 (21:11 +0800)
commitc8c8c1bdbe585d9159c4585216451faa4c35e4ec
tree5c641664baba07f1f50b2415ca70a2b2ecda344a
parent632cf92a72fecda096d0f4608eaefb2c7392b744
mmc_test: fix performance tests that go over max_blk_count

The host controller driver limits I/O transfers to maximum
transfer size, maximum block count, maximum segment size
and maximum segment count.  The performance tests were
not obeying these limits which meant they would not work
with some drivers.  This patch fixes that.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/mmc_test.c