Skip to content

Commit 470d07d

Browse files
committed
nand: default to 8-bit of ECC for NANDs reporting 0
Previous commit 3500670 was defaulting to 1-bit of ECC for NANDs reporting 0-bit ECC strength (normally because they have on-die ECC). Default to 8-bit instead. Signed-off-by: Hector Palacios <[email protected]>
1 parent fd58e6d commit 470d07d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/nand/raw/nand_base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4415,7 +4415,7 @@ static bool find_full_id_nand(struct mtd_info *mtd, struct nand_chip *chip,
44154415
*/
44164416
__weak void set_default_ecc_parameters(struct nand_chip *chip)
44174417
{
4418-
chip->ecc_strength_ds = 1;
4418+
chip->ecc_strength_ds = 8;
44194419
chip->ecc_step_ds = 512;
44204420
}
44214421

0 commit comments

Comments
 (0)