[U-Boot] [PATCH 2/2] MTD:NAND: ADD new ECC mode NAND_ECC_HW_OOB_FIRST
Scott Wood
scottwood at freescale.com
Tue Sep 1 22:06:11 CEST 2009
Matt Waddel wrote:
> Hi Scott and Sandeep,
>
> As long as we're looking at these patches again I had a question about
> patch 1 of 2 in this series.
>
> The following part of the patch added a definition for:
>
> chip->ecc.read_page = nand_read_page_hwecc_oob_first
>
> but since there aren't any "break" statements until "case NAND_ECC_SOFT:"
> it looks like the chip->ecc.read_page definition ends up being set to:
>
> chip->ecc.read_page = nand_read_page_swecc.
>
> Maybe this is explains why things seem to be working???
No, that's OK -- it stops before that on the
"if (mtd->writesize >= chip->ecc.size) break;" line (or if that
condition is not true, it prints a warning that it is falling back on
soft ecc).
-Scott
More information about the U-Boot
mailing list