Re: [PATCH v2 06/12] mtd: nand_bbt: use erase() and is_bad_bbm() hook in BBT

2016-01-06 Thread Boris Brezillon
On Tue, 15 Dec 2015 05:59:32 + Peter Pan wrote: > From: Brian Norris > > Since NAND already create its nand_bbt struct, we can use erase() > hook instead of call nand_erase_nand() directly. Also, we can use > is_bad_bbm() to avoid passing badblock_pattern to BBT. > > Signed-off-by: Brian

Re: [PATCH v2 06/12] mtd: nand_bbt: use erase() and is_bad_bbm() hook in BBT

2016-01-06 Thread Boris Brezillon
On Tue, 15 Dec 2015 05:59:32 + Peter Pan wrote: > From: Brian Norris > > Since NAND already create its nand_bbt struct, we can use erase() > hook instead of call nand_erase_nand() directly. Also, we can use > is_bad_bbm() to avoid

[PATCH v2 06/12] mtd: nand_bbt: use erase() and is_bad_bbm() hook in BBT

2015-12-14 Thread Peter Pan
From: Brian Norris Since NAND already create its nand_bbt struct, we can use erase() hook instead of call nand_erase_nand() directly. Also, we can use is_bad_bbm() to avoid passing badblock_pattern to BBT. Signed-off-by: Brian Norris [Peter: remove @buf in create_bbt()] Signed-off-by: Peter

[PATCH v2 06/12] mtd: nand_bbt: use erase() and is_bad_bbm() hook in BBT

2015-12-14 Thread Peter Pan
From: Brian Norris Since NAND already create its nand_bbt struct, we can use erase() hook instead of call nand_erase_nand() directly. Also, we can use is_bad_bbm() to avoid passing badblock_pattern to BBT. Signed-off-by: Brian Norris