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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



writebufsize is zero initialized, set actual value during init.

Signed-off-by: Alexander Stein <alexander.stein@xxxxxxxxxxxxxxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux