Add back temporarily disabled ECC in nand driver
authorCharles Manning <cdhmanning@gmail.com>
Tue, 7 May 2013 04:35:16 +0000 (16:35 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Tue, 7 May 2013 04:35:16 +0000 (16:35 +1200)
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/test-framework/yaffs_nand_drv.c

index 6b3a91e..d9c4e73 100644 (file)
@@ -143,7 +143,6 @@ static int yaffs_nand_drv_ReadChunk(struct yaffs_dev *dev, int nand_chunk,
 
        ecc_result = YAFFS_ECC_RESULT_NO_ERROR;
 
 
        ecc_result = YAFFS_ECC_RESULT_NO_ERROR;
 
-#if 0
        if(data) {
                for(i = 0, e = buffer + 2; i < chip->data_bytes_per_page; i+=256, e+=3) {
                        yaffs_ecc_calc(data + i, read_ecc);
        if(data) {
                for(i = 0, e = buffer + 2; i < chip->data_bytes_per_page; i+=256, e+=3) {
                        yaffs_ecc_calc(data + i, read_ecc);
@@ -154,7 +153,6 @@ static int yaffs_nand_drv_ReadChunk(struct yaffs_dev *dev, int nand_chunk,
                                ecc_result = YAFFS_ECC_RESULT_FIXED;
                }
        }
                                ecc_result = YAFFS_ECC_RESULT_FIXED;
                }
        }
-#endif
 
        if (ecc_result_out)
                *ecc_result_out = ecc_result;
 
        if (ecc_result_out)
                *ecc_result_out = ecc_result;