]> git.baikalelectronics.ru Git - kernel.git/commit
mmc_test: block addressed cards
authorJohan Kristell <johan.kristell@axis.com>
Wed, 10 Feb 2010 21:56:34 +0000 (13:56 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Feb 2010 21:59:42 +0000 (13:59 -0800)
commit2db6fff44873b43259a099c1068e99384d198d34
treebcc136934c1b3699163a4a59ef64f7849b620ec0
parentb3d31e6bdd7d0c13d9cc7a3c8552153cf19f3b62
mmc_test: block addressed cards

This patch fixes a bug in the multiblock write tests where the written
data is read back for verifying one block at a time.  The tests in
mmc_test assumes that all cards are byte addressable.

This will cause the multi block write tests to fail, leading the user of
the mmc_test driver thinking there is something wrong with the sdhci
driver they are testing.

The start address for the block is calculated as: blocknum * 512. For
block addressable cards the blocknum alone should be used.

Signed-off-by: Johan Kristell <johan.kristell@axis.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mmc/card/mmc_test.c