[U-Boot] [PATCH v7 4/5] mtd: nand: omap: optimized chip->ecc.correct() for H/W ECC schemes

2013-09-30 Thread Pekon Gupta
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

Re: [U-Boot] [PATCH v7 4/5] mtd: nand: omap: optimized chip->ecc.correct() for H/W ECC schemes

2013-10-08 Thread Scott Wood
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 ___