Re: [PATCH v6 05/10] mtd: get the ECC info from the Extended Parameter Page

2013-05-17 Thread Vikram Narayanan
Hello Huang, On 5/17/2013 8:47 AM, Huang Shijie wrote: Since the ONFI 2.1, the onfi spec adds the Extended Parameter Page to store the ECC info. diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index b63b731..0b1162a 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/dri

[PATCH v6 05/10] mtd: get the ECC info from the Extended Parameter Page

2013-05-16 Thread Huang Shijie
Since the ONFI 2.1, the onfi spec adds the Extended Parameter Page to store the ECC info. The onfi spec tells us that if the nand chip's recommended ECC codeword size is not 512 bytes, then the @ecc_bits is 0xff. The host _SHOULD_ then read the Extended ECC information that is part of the extended