浏览代码

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@free-electrons.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Thomas Petazzoni 8 年之前
父节点
当前提交
838ff7b333
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/mtd/nand/fsmc_nand.c

+ 3 - 0
drivers/mtd/nand/fsmc_nand.c

@@ -1055,6 +1055,9 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
 				break;
 				break;
 			}
 			}
 
 
+		case NAND_ECC_ON_DIE:
+			break;
+
 		default:
 		default:
 			dev_err(&pdev->dev, "Unsupported ECC mode!\n");
 			dev_err(&pdev->dev, "Unsupported ECC mode!\n");
 			goto err_probe;
 			goto err_probe;