From 919c0b8c824733cad3f2d9bb981436d9e36dec77 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 20 Nov 2014 20:15:05 +0530 Subject: mtd/nand/vf610_nfc: Disable subpage writes 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. Signed-off-by: Sanchayan Maity Signed-off-by: Stefan Agner --- drivers/mtd/nand/vf610_nfc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/nand/vf610_nfc.c b/drivers/mtd/nand/vf610_nfc.c index 7feb3a7b1e..1af314f87d 100644 --- a/drivers/mtd/nand/vf610_nfc.c +++ b/drivers/mtd/nand/vf610_nfc.c @@ -691,6 +691,8 @@ static int vf610_nfc_nand_init(int devnum, void __iomem *addr) chip->ecc.bytes = 45; chip->ecc.size = PAGE_2K; chip->ecc.strength = 24; + /* Disable subpage writes as we do not provide ecc->hwctl */ + chip->options |= NAND_NO_SUBPAGE_WRITE; /* set ECC mode to 45 bytes OOB with 24 bits correction */ vf610_nfc_set_field(mtd, NFC_FLASH_CONFIG, -- cgit v1.2.3