commit | f5e2bae0aad03164ffc7ce9dfeee6608e2c87dba | [log] [tgz] |
---|---|---|
author | Morten Thunberg Svendsen <mts.doredevelopment@gmail.com> | Wed Jan 06 10:48:18 2010 +0100 |
committer | David Woodhouse <David.Woodhouse@intel.com> | Wed Jan 13 09:06:17 2010 +0000 |
tree | 6993fa233c58a12ffe4f8136a28309c2d9cc762e | |
parent | f6a8c60960bbea378142d1fa1b3d111555ee41c7 [diff] |
mtd: tests: fix read, speed and stress tests on NOR flash 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. Signed-off-by: Morten Thunberg Svendsen <mts.doredevelopment@gmail.com> Acked-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>