[PATCH] mtd: Nand Atmel: add On Flash BBT support

simon polette spolette at gmail.com
Tue May 26 05:40:48 EDT 2009


2009/5/26 Artem Bityutskiy <dedekind at infradead.org>:
> On Mon, 2009-05-25 at 17:44 +0200, simon polette wrote:
>> +config       MTD_NAND_ATMEL_FLASH_BBT
>> +     bool "Use On-Flash Bad Block Table"
>> +     depends on MTD_NAND_ATMEL
>> +     help
>> +       This enables the On-Flash BBT, which mean that the bad blocks
>> +       will be scanned one time then the BBT will be stored
>> +       in flash, so scanning Nand flash for bad blocks will be no more
>> +       necessary for the next boots.
>> +
>
> I do not think you need a config option for this. It should be
> a module parameter instead.
>
> --
> Best regards,
> Artem Bityutskiy (Битюцкий Артём)
>
>

Yes, good idea, but do you think that I can keep a config option to
define the default state of that param, it means doing something like
:
#ifdef CONFIG_MTD_NAND_ATMEL_FLASH_BBT
static int use_on_flash_bbt = 1;
#else
static int use_on_flash_bbt = 0;
#endif
module_param(use_on_flash_bbt, int, 0);


Best regards,

Simon Polette
Adeneo - Adetelgroup



More information about the linux-mtd mailing list