* [U-Boot] [PATCH] mtd: atmel_nand: Disable subpage NAND write when using Atmel PMECC
@ 2014-09-02 8:23 Boris BREZILLON
2014-09-15 10:08 ` Josh Wu
2014-09-19 6:32 ` [U-Boot] " Andreas Bießmann
0 siblings, 2 replies; 3+ messages in thread
From: Boris BREZILLON @ 2014-09-02 8:23 UTC (permalink / raw)
To: u-boot
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@free-electrons.com>
---
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;
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] mtd: atmel_nand: Disable subpage NAND write when using Atmel PMECC
2014-09-02 8:23 [U-Boot] [PATCH] mtd: atmel_nand: Disable subpage NAND write when using Atmel PMECC Boris BREZILLON
@ 2014-09-15 10:08 ` Josh Wu
2014-09-19 6:32 ` [U-Boot] " Andreas Bießmann
1 sibling, 0 replies; 3+ messages in thread
From: Josh Wu @ 2014-09-15 10:08 UTC (permalink / raw)
To: u-boot
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@free-electrons.com>
Sorry for the later reply. And
Acked-by: Josh Wu <josh.wu@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;
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] mtd: atmel_nand: Disable subpage NAND write when using Atmel PMECC
2014-09-02 8:23 [U-Boot] [PATCH] mtd: atmel_nand: Disable subpage NAND write when using Atmel PMECC Boris BREZILLON
2014-09-15 10:08 ` Josh Wu
@ 2014-09-19 6:32 ` Andreas Bießmann
1 sibling, 0 replies; 3+ messages in thread
From: Andreas Bießmann @ 2014-09-19 6:32 UTC (permalink / raw)
To: u-boot
Dear Boris BREZILLON,
Boris BREZILLON <boris.brezillon@free-electrons.com> writes:
>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@free-electrons.com>
>Acked-by: Josh Wu <josh.wu@atmel.com>
>---
>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(+)
applied to u-boot-atmel/master, thanks!
Best regards,
Andreas Bie?mann
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-09-19 6:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-02 8:23 [U-Boot] [PATCH] mtd: atmel_nand: Disable subpage NAND write when using Atmel PMECC Boris BREZILLON
2014-09-15 10:08 ` Josh Wu
2014-09-19 6:32 ` [U-Boot] " Andreas Bießmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox