mtd: denali: Disable sub-page writes in Denali NAND driver

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Apr 22 10:59:06 PDT 2015


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d99d72829ec00a96d2d71f30a704b901c198a673
Commit:     d99d72829ec00a96d2d71f30a704b901c198a673
Parent:     e5860c18e68606446a10c3e926a2a0162c385cbf
Author:     Graham Moore <grmoore at opensource.altera.com>
AuthorDate: Wed Jan 14 09:38:50 2015 -0600
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Mar 30 18:32:44 2015 -0700

    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 <grmoore at opensource.altera.com>
    Signed-off-by: Dinh Nguyen <dinguyen at opensource.altera.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/denali.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index 09f5139..870c7fc 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



More information about the linux-mtd-cvs mailing list