chip->ecc.correct() is used for detecting and correcting bit-flips during read
operations. In omap-nand driver it implemented as:
(a) omap_correct_data(): for h/w based ECC_HAM1 scheme
(b) omap_correct_data_bch() + CONFIG_NAND_OMAP_ECC_BCH8_CODE_HW_DETECTION_SW
for ECC_BCH8 scheme using GPM
On Mon, 2013-09-30 at 19:43 +0530, Pekon Gupta wrote:
> + /* check calculated ecc */
> + for (i = 0; i < chip->ecc.bytes && !ecc_flag; i++)
> + if (calc_ecc[i] != 0x00)
> + ecc_flag = 1;
U-Boot code style wants braces around multi-line bodies.
-Scott
___
2 matches
Mail list logo