* [PATCH] mtd: fsl_ifc_nand: set NAND_NO_SUBPAGE_WRITE
@ 2013-04-10 22:34 Scott Wood
2013-05-10 14:48 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Scott Wood @ 2013-04-10 22:34 UTC (permalink / raw)
To: David Woodhouse; +Cc: linux-mtd, prabhakar
This controller only does ECC on full-page accesses, even though the
ECC consists of multiple steps. fsl_elbc_nand can get away with this
because the ECC of an all-0xff region will be all-0xff, but this is not
true with the ECC algorithms used by IFC.
Signed-off-by: Scott Wood <scottwood@freescale.com>
---
drivers/mtd/nand/fsl_ifc_nand.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/fsl_ifc_nand.c b/drivers/mtd/nand/fsl_ifc_nand.c
index f1f7f12..4e1fc4d 100644
--- a/drivers/mtd/nand/fsl_ifc_nand.c
+++ b/drivers/mtd/nand/fsl_ifc_nand.c
@@ -823,7 +823,7 @@ static int fsl_ifc_chip_init(struct fsl_ifc_mtd *priv)
/* set up nand options */
chip->bbt_options = NAND_BBT_USE_FLASH;
-
+ chip->options = NAND_NO_SUBPAGE_WRITE;
if (ioread32be(&ifc->cspr_cs[priv->bank].cspr) & CSPR_PORT_SIZE_16) {
chip->read_byte = fsl_ifc_read_byte16;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: fsl_ifc_nand: set NAND_NO_SUBPAGE_WRITE
2013-04-10 22:34 [PATCH] mtd: fsl_ifc_nand: set NAND_NO_SUBPAGE_WRITE Scott Wood
@ 2013-05-10 14:48 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2013-05-10 14:48 UTC (permalink / raw)
To: Scott Wood; +Cc: linux-mtd, David Woodhouse, prabhakar
On Wed, 2013-04-10 at 17:34 -0500, Scott Wood wrote:
> This controller only does ECC on full-page accesses, even though the
> ECC consists of multiple steps. fsl_elbc_nand can get away with this
> because the ECC of an all-0xff region will be all-0xff, but this is not
> true with the ECC algorithms used by IFC.
>
> Signed-off-by: Scott Wood <scottwood@freescale.com>
Pushed to l2-mtd.git, thanks!
--
Best Regards,
Artem Bityutskiy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-10 14:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-10 22:34 [PATCH] mtd: fsl_ifc_nand: set NAND_NO_SUBPAGE_WRITE Scott Wood
2013-05-10 14:48 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).