repost [Fwd: [PATCH 1/5] mtd: nand: move layout structure into nand_ecc_ctrl]

Troy Kisky troy.kisky at boundarydevices.com
Fri May 15 18:11:53 EDT 2009


Richard Genoud wrote:
>> +       bad_block_marker_offset = 0;
> you should use NAND_LARGE_BADBLOCK_POS defined in nand.h

Thanks, will do

>> +       bad_block_marker_length = 2;
>> +       if (mtd->oobsize == 8) {
>> +               bad_block_marker_offset = 5;
> same with NAND_SMALL_BADBLOCK_POS
> 
>> +               bad_block_marker_length = 1;
>> +       } else if (mtd->oobsize == 16) {
>> +               bad_block_marker_offset = 4;    /* length still 2 */
> 

ditto.

Troy



More information about the linux-mtd mailing list