[U-Boot] [PATCH] mtd: atmel_nand: Disable subpage NAND write when using Atmel PMECC
Josh Wu
josh.wu at atmel.com
Mon Sep 15 12:08:06 CEST 2014
Hi, Boris
On 9/2/2014 4:23 PM, Boris BREZILLON wrote:
> Disable subpage write when using PMECC to prevent buggy partial page write.
>
> This fix has been taken from linux sources (see commit
> 90445ff6241e2a13445310803e2efa606c61f276)
>
> Signed-off-by: Boris BREZILLON <boris.brezillon at free-electrons.com>
Sorry for the later reply. And
Acked-by: Josh Wu <josh.wu at atmel.com>
Best Regards,
Josh Wu
> ---
> Hi,
>
> Here is a link to the linux commit:
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/mtd/nand/atmel_nand.c?id=90445ff6241e2a13445310803e2efa606c61f276
>
> Best Regards,
>
> Boris
>
> drivers/mtd/nand/atmel_nand.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
> index e73834d..ee67662 100644
> --- a/drivers/mtd/nand/atmel_nand.c
> +++ b/drivers/mtd/nand/atmel_nand.c
> @@ -881,6 +881,7 @@ static int atmel_pmecc_nand_init_params(struct nand_chip *nand,
> return -ENOMEM;
> }
>
> + nand->options |= NAND_NO_SUBPAGE_WRITE;
> nand->ecc.read_page = atmel_nand_pmecc_read_page;
> nand->ecc.write_page = atmel_nand_pmecc_write_page;
> nand->ecc.strength = cap;
More information about the U-Boot
mailing list