mtd: atmel_nand: using a stronger ECC is not dangerous

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Aug 5 16:59:05 EDT 2013


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=f666d6495a4350ebe4ebb8c071b290f9f49514bf
Commit:     f666d6495a4350ebe4ebb8c071b290f9f49514bf
Parent:     11f164d11187331985f8550df9738a588792adf9
Author:     Richard Genoud <richard.genoud at gmail.com>
AuthorDate: Tue Jul 30 17:17:29 2013 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Aug 5 21:00:49 2013 +0100

    mtd: atmel_nand: using a stronger ECC is not dangerous
    
    We don't have to issue a warning when a stronger error correcting
    capability is chosen.
    
    Signed-off-by: Richard Genoud <richard.genoud at gmail.com>
    Acked-by: Josh Wu <josh.wu at atmel.com>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/atmel_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 7e50ed8..0871510 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -995,7 +995,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");
 



More information about the linux-mtd-cvs mailing list