]> git.sur5r.net Git - openocd/commit
NAND: fix first and last handling in nand_build_bbt
authorJon Povey <jon.povey@racelogic.co.uk>
Thu, 13 May 2010 09:31:42 +0000 (18:31 +0900)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Fri, 14 May 2010 11:23:01 +0000 (13:23 +0200)
commitdcca0b7694d23dbee6f1554dfbc4bffc4bedb4f2
treeb251d235d15be84be9aed549d16b8f93cdc9c8ce
parent0eb7fb59a0afe9c82f1f3d3f88fb88e3f04d706a
NAND: fix first and last handling in nand_build_bbt

Last block was being skipped, fix by changing the loop test from "<" to "<="

First block argument was ignored, always started from block 0 (and counted
the wrong blocks as bad if first was nonzero). Now we use it.

Signed-off-by: Jon Povey <jon.povey@racelogic.co.uk>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/flash/nand/core.c