Skip to contentSkip to conversation

Blackfin NFC Driver: fix bug - do not clobber the status from the first 256 bytes if operating on 512 pages

PATCH In review [email protected] 1 participant 1 message Jul 30, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/13 Blackfin NFC Driver: fix bug - do not clobber the status from the first 256 bytes if operating on 512 pages

From: Mike Frysinger <[email protected]>

---

 drivers/mtd/nand/bf5xx_nand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/bf5xx_nand.c renamed from drivers/mtd/nand/bf5xx_nand.c~blackfin-nfc-driver-fix-bug-do-not-clobber-the-status-from-the-first-256-bytes-if-operating-on-512-pages +1 -1
diff -puN drivers/mtd/nand/bf5xx_nand.c~blackfin-nfc-driver-fix-bug-do-not-clobber-the-status-from-the-first-256-bytes-if-operating-on-512-pages drivers/mtd/nand/bf5xx_nand.c
@@ -273,7 +273,7 @@ static int bf5xx_nand_correct_data(struc
 		dat += 256;
 		read_ecc += 8;
 		calc_ecc += 8;
-		ret = bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc);
+		ret |= bf5xx_nand_correct_data_256(mtd, dat, read_ecc, calc_ecc);
 	}
 
 	return ret;

_