[PATCH] mtd: nand: mrvl-nand: create initial empty bbt

Sascha Hauer s.hauer at pengutronix.de
Wed Aug 19 07:24:53 PDT 2015


On Sun, Aug 09, 2015 at 11:54:18PM +0200, Robert Jarzmik wrote:
> When creating an initial bad blocks table, create it empty. This is
> necessary because when the bad block table blocks are not
> initialized (all ff) while some partitions are, all the blocks which
> have an OOB data not beginning with 0xff 0xff will be marked as bad
> blocks in the initial bad blocks scan.
> 
> As a consequence, any existing blocks are impossible to erase
> anymore. Fix this by fixing the BBT creation flag.
> 
> Signed-off-by: Robert Jarzmik <robert.jarzmik at free.fr>
> ---
>  drivers/mtd/nand/nand_mrvl_nfc.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list