[PATCH 01/13] mtd: cfi-flash: Set MTD's writebufsize

Alexander Stein alexander.stein at systec-electronic.com
Thu Mar 17 03:00:17 PDT 2016


writebufsize is zero initialized, set actual value during init.

Signed-off-by: Alexander Stein <alexander.stein at systec-electronic.com>
---
 drivers/mtd/nor/cfi_flash.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nor/cfi_flash.c b/drivers/mtd/nor/cfi_flash.c
index e50f0e6..5bdccca 100644
--- a/drivers/mtd/nor/cfi_flash.c
+++ b/drivers/mtd/nor/cfi_flash.c
@@ -956,6 +956,7 @@ static void cfi_init_mtd(struct flash_info *info)
 	mtd->erasesize = erasesize;
 
 	mtd->writesize = 1;
+	mtd->writebufsize = info->buffer_size;
 	mtd->subpage_sft = 0;
 	mtd->eraseregions = info->eraseregions;
 	mtd->numeraseregions = info->numeraseregions;
-- 
2.7.3




More information about the barebox mailing list