Skip to content
Commit f5e2bae0 authored by Morten Thunberg Svendsen's avatar Morten Thunberg Svendsen Committed by David Woodhouse
Browse files

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: default avatarMorten Thunberg Svendsen <mts.doredevelopment@gmail.com>
Acked-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent f6a8c609
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment