mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
mtd: nand: omap_gpmc: Fix update of read_ecc in oob
We need to flip only one bit not assign. Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Acked-by: Pekon Gupta <pekon@ti.com>
This commit is contained in:
parent
2d92ba8440
commit
97eeae1a07
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue