Skip to contentSkip to conversation

MTD: atmel_nand: using a stronger ECC is not dangerous

PATCH Superseded Richard Genoud 2 participants 2 messages May 31, 2013 – Jun 3, 2013

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

PATCH 1/1 MTD: atmel_nand: using a stronger ECC is not dangerous

We don't have to issue a warning when a stronger error correting capability is chosen.

---
 drivers/mtd/nand/atmel_nand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/atmel_nand.c +1 -1
index 2d23d29..2415cdc 100644
@@ -1002,7 +1002,7 @@ static int __init atmel_pmecc_nand_init_params(struct platform_device *pdev,
 		return err_no;
 	}
 
-	if (cap != host->pmecc_corr_cap ||
+	if (cap > host->pmecc_corr_cap ||
 			sector_size != host->pmecc_sector_size)
 		dev_info(host->dev, "WARNING: Be Caution! Using different PMECC parameters from Nand ONFI ECC reqirement.\n");
 
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Richard Genoud

We don't have to issue a warning when a stronger error correting capability is chosen.

Best Regards,
Josh Wu

Quoted 17 lines
---
  drivers/mtd/nand/atmel_nand.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/atmel_nand.c +1 -1
index 2d23d29..2415cdc 100644
@@ -1002,7 +1002,7 @@ static int __init atmel_pmecc_nand_init_params(struct platform_device *pdev,
  		return err_no;
  	}
 
-	if (cap != host->pmecc_corr_cap ||
+	if (cap > host->pmecc_corr_cap ||
  			sector_size != host->pmecc_sector_size)
  		dev_info(host->dev, "WARNING: Be Caution! Using different PMECC parameters from Nand ONFI ECC reqirement.\n");