Skip to content

Commit

Permalink
mtd: nand: fsmc_nand: handle on-die ECC case
Browse files Browse the repository at this point in the history
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@free-electrons.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
  • Loading branch information
Thomas Petazzoni authored and Boris Brezillon committed Jun 1, 2017
1 parent 9748e1d commit 838ff7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mtd/nand/fsmc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 838ff7b

Please sign in to comment.