mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
mtd: atmel_nand: don't print bit correction message in driver
Since for some MLC nand, bit errors happened too often. Just disable it to avoid noise Signed-off-by: Josh Wu <josh.wu@atmel.com>
This commit is contained in:
@@ -452,7 +452,7 @@ static void pmecc_correct_data(struct mtd_info *mtd, uint8_t *buf, uint8_t *ecc,
|
|||||||
*(buf + byte_pos) ^= (1 << bit_pos);
|
*(buf + byte_pos) ^= (1 << bit_pos);
|
||||||
|
|
||||||
pos = sector_num * host->pmecc_sector_size + byte_pos;
|
pos = sector_num * host->pmecc_sector_size + byte_pos;
|
||||||
printk(KERN_INFO "Bit flip in data area, byte_pos: %d, bit_pos: %d, 0x%02x -> 0x%02x\n",
|
dev_dbg(host->dev, "Bit flip in data area, byte_pos: %d, bit_pos: %d, 0x%02x -> 0x%02x\n",
|
||||||
pos, bit_pos, err_byte, *(buf + byte_pos));
|
pos, bit_pos, err_byte, *(buf + byte_pos));
|
||||||
} else {
|
} else {
|
||||||
/* Bit flip in OOB area */
|
/* Bit flip in OOB area */
|
||||||
@@ -462,7 +462,7 @@ static void pmecc_correct_data(struct mtd_info *mtd, uint8_t *buf, uint8_t *ecc,
|
|||||||
ecc[tmp] ^= (1 << bit_pos);
|
ecc[tmp] ^= (1 << bit_pos);
|
||||||
|
|
||||||
pos = tmp + nand_chip->ecc.layout->eccpos[0];
|
pos = tmp + nand_chip->ecc.layout->eccpos[0];
|
||||||
printk(KERN_INFO "Bit flip in OOB, oob_byte_pos: %d, bit_pos: %d, 0x%02x -> 0x%02x\n",
|
dev_dbg(host->dev, "Bit flip in OOB, oob_byte_pos: %d, bit_pos: %d, 0x%02x -> 0x%02x\n",
|
||||||
pos, bit_pos, err_byte, ecc[tmp]);
|
pos, bit_pos, err_byte, ecc[tmp]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user