Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6943f8af authored by David Woodhouse's avatar David Woodhouse
Browse files

[MTD NAND] Reduce paranoia level when scanning for bad blocks on virgin chips



We were scanning for 0xFF through the entire chip -- which takes a while
when it's a 512MiB device as I have on my current toy. The specs only say
we need to check certain bytes -- so do only that.

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 9d75414b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -981,14 +981,14 @@ static struct nand_bbt_descr largepage_memorybased = {
};

static struct nand_bbt_descr smallpage_flashbased = {
	.options = NAND_BBT_SCANEMPTY | NAND_BBT_SCANALLPAGES,
	.options = NAND_BBT_SCAN2NDPAGE,
	.offs = 5,
	.len = 1,
	.pattern = scan_ff_pattern
};

static struct nand_bbt_descr largepage_flashbased = {
	.options = NAND_BBT_SCANEMPTY | NAND_BBT_SCANALLPAGES,
	.options = NAND_BBT_SCAN2NDPAGE,
	.offs = 0,
	.len = 2,
	.pattern = scan_ff_pattern