mtd: nand: fsmc_nand: handle on-die ECC case

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Jul 13 10:59:12 PDT 2017


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=838ff7b333263abc9e7e026bb225ed66511f450f
Commit:     838ff7b333263abc9e7e026bb225ed66511f450f
Parent:     9748e1d87573c94191442d6bd0307f523e5cd8b8
Author:     Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
AuthorDate: Sat Apr 29 11:06:46 2017 +0200
Committer:  Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Thu Jun 1 10:09:23 2017 +0200

    mtd: nand: fsmc_nand: handle on-die ECC case
    
    This commit adjusts the fsmc_nand driver so that it accepts the
    NAND_ECC_ON_DIE case. It simply does nothing in this case, since both
    the ECC operations and OOB layout will be defined by the NAND chip code
    rather than by the NAND controller code.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
    Reviewed-by: Richard Weinberger <richard at nod.at>
    Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
 drivers/mtd/nand/fsmc_nand.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c
index f58c912..de57554 100644
--- a/drivers/mtd/nand/fsmc_nand.c
+++ b/drivers/mtd/nand/fsmc_nand.c
@@ -1055,6 +1055,9 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
 				break;
 			}
 
+		case NAND_ECC_ON_DIE:
+			break;
+
 		default:
 			dev_err(&pdev->dev, "Unsupported ECC mode!\n");
 			goto err_probe;



More information about the linux-mtd-cvs mailing list