[PATCH] mtd: fsl_elbc_nand: set NAND_NO_SUBPAGE_WRITE flag if using hardware ECC

Gupta, Pekon pekon at ti.com
Tue May 6 02:57:48 PDT 2014

Hi Nikita,

>From: Nikita Yushchenko
>Per MPC8572E manual, sec "Transfers shorter than a full page,
>however, require software to prepare the appropriate ECC in the spare
>Need to set NAND_NO_SUBPAGE_WRITE flag. If this is not done, then
>generic nand_write_subpage_hwecc() is called instead of driver's
>write routine, which results into OOPS dereferencing NULL chip->ecc.hwctl
>Signed-off-by: Nikita Yushchenko <nyushchenko at dev.rtsoft.ru>

This one is already solved.

Please refer below discussion and its previous thread on
why NAND_NO_SUBPAGE_WRITE should _not_ be set,
because it breaks compatibility with older UBIFS images.


Also below is the appropriate fix without breaking backward compatibility.

with regards, pekon

More information about the linux-mtd mailing list