Re: [PATCH V3 4/9] mtd: get the ECC info from the Extended Parameter Page

2013-04-25 Thread Huang Shijie
于 2013年04月25日 14:20, Brian Norris 写道: No, you cannot do this. Some drivers will provide their own cmdfunc, so nand_command_lp() is unexpected for those drivers. ok. got it. Your problem seems, instead, that you are executing this function too early, before nand_flash_get_type() is able to

Re: [PATCH V3 4/9] mtd: get the ECC info from the Extended Parameter Page

2013-04-25 Thread Brian Norris
On Tue, Apr 23, 2013 at 1:54 AM, Huang Shijie wrote: > 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_

Re: [PATCH V3 4/9] mtd: get the ECC info from the Extended Parameter Page

2013-04-25 Thread Brian Norris
On Tue, Apr 23, 2013 at 1:54 AM, Huang Shijie b32...@freescale.com wrote: 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

Re: [PATCH V3 4/9] mtd: get the ECC info from the Extended Parameter Page

2013-04-25 Thread Huang Shijie
于 2013年04月25日 14:20, Brian Norris 写道: No, you cannot do this. Some drivers will provide their own cmdfunc, so nand_command_lp() is unexpected for those drivers. ok. got it. Your problem seems, instead, that you are executing this function too early, before nand_flash_get_type() is able to

[PATCH V3 4/9] mtd: get the ECC info from the Extended Parameter Page

2013-04-23 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

[PATCH V3 4/9] mtd: get the ECC info from the Extended Parameter Page

2013-04-23 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