]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd/nand/vf610_nfc: Disable subpage writes
authorSanchayan Maity <maitysanchayan@gmail.com>
Mon, 24 Nov 2014 05:33:59 +0000 (11:03 +0530)
committerScott Wood <scottwood@freescale.com>
Thu, 27 Nov 2014 01:53:49 +0000 (19:53 -0600)
This patch disables subpage writes for vf610_nfc nand
driver. This is required, as without this fix, writing
unaligned u-boot images with DFU results in a hang.
Trying to write unalgined binary images also results
in a hang, without disabling subpage writes.

Patch has been tested on a Colibri VF61 module.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
drivers/mtd/nand/vf610_nfc.c

index 7feb3a7b1e78c30251c3df480fbaf164ba9732e8..928d58b3a732894bcf7fe143da3ef821d6caf0bb 100644 (file)
@@ -611,6 +611,9 @@ static int vf610_nfc_nand_init(int devnum, void __iomem *addr)
                vf610_nfc_clear(mtd, NFC_FLASH_CONFIG, CONFIG_16BIT);
        }
 
+       /* Disable subpage writes as we do not provide ecc->hwctl */
+       chip->options |= NAND_NO_SUBPAGE_WRITE;
+
        chip->dev_ready = vf610_nfc_dev_ready;
        chip->cmdfunc = vf610_nfc_command;
        chip->read_byte = vf610_nfc_read_byte;