diff options
author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2014-05-16 16:49:50 +0200 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2014-05-16 16:49:50 +0200 |
commit | a90bed77a6ec51cf8032a4d731014f9381ec6466 (patch) | |
tree | c66f624614edd0ee3bb7f0c72e574d6258978a4e /drivers | |
parent | 44cfc3a83f2a62963af2de8d983daf4c77e1db0c (diff) | |
parent | 97eeae1a0735fc17351f10b9978e966392badedc (diff) | |
download | u-boot-imx-a90bed77a6ec51cf8032a4d731014f9381ec6466.zip u-boot-imx-a90bed77a6ec51cf8032a4d731014f9381ec6466.tar.gz u-boot-imx-a90bed77a6ec51cf8032a4d731014f9381ec6466.tar.bz2 |
Merge branch 'u-boot-ti/master' into 'u-boot-arm/master'
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/omap_gpmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c index 881a636..bf99b8e 100644 --- a/drivers/mtd/nand/omap_gpmc.c +++ b/drivers/mtd/nand/omap_gpmc.c @@ -403,7 +403,7 @@ static int omap_correct_data_bch(struct mtd_info *mtd, uint8_t *dat, dat[byte_pos] ^= 1 << bit_pos; printf("nand: bit-flip corrected @data=%d\n", byte_pos); } else if (byte_pos < error_max) { - read_ecc[byte_pos - SECTOR_BYTES] = 1 << bit_pos; + read_ecc[byte_pos - SECTOR_BYTES] ^= 1 << bit_pos; printf("nand: bit-flip corrected @oob=%d\n", byte_pos - SECTOR_BYTES); } else { |