Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 838ff7b3 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Boris Brezillon
Browse files

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: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent 9748e1d8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;