[PATCH] [MTD] tests: Fix read, speed and stress tests on NOR flash

Artem Bityutskiy dedekind1 at gmail.com
Thu Jan 7 01:50:25 EST 2010


On Wed, 2010-01-06 at 10:48 +0100, Morten Thunberg Svendsen wrote:
> Before using block_isbad() check if mtd->block_isbad() is defined.
> Calculating pgcnt must be done using pgsize defined to 512 on 
> NOR and mtd->writesize for NAND, not using  mtd->writesize directly.
> 
> Previous Patch sendt Dec 16, 2009 did not include check on block_isbad, please ignore
> 
> Signed-off-by: Morten Thunberg Svendsen <mts.doredevelopment at gmail.com>
> ---
>  drivers/mtd/tests/mtd_readtest.c   |    6 +++++-
>  drivers/mtd/tests/mtd_speedtest.c  |    7 ++++++-
>  drivers/mtd/tests/mtd_stresstest.c |    6 +++++-
>  3 files changed, 16 insertions(+), 3 deletions(-)

Acked-by: Artem Bityutskiy <dedekind at infradead.org>

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list