From: Graham Moore Date: Wed, 14 Jan 2015 15:38:50 +0000 (-0600) Subject: mtd: denali: Disable sub-page writes in Denali NAND driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d99d72829ec00a96d2d71f30a704b901c198a673;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mtd: denali: Disable sub-page writes in Denali NAND driver The Denali Controller IP does not support sub-page writes. Signed-off-by: Graham Moore Signed-off-by: Dinh Nguyen Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index 09f51395f2c0..870c7fc0f759 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c @@ -1533,6 +1533,9 @@ int denali_init(struct denali_nand_info *denali) denali->nand.options |= NAND_SKIP_BBTSCAN; denali->nand.ecc.mode = NAND_ECC_HW_SYNDROME; + /* no subpage writes on denali */ + denali->nand.options |= NAND_NO_SUBPAGE_WRITE; + /* * Denali Controller only support 15bit and 8bit ECC in MRST, * so just let controller do 15bit ECC for MLC and 8bit ECC for