mtd: cfi: add writebufsize initialization
[firefly-linux-kernel-4.4.55.git] / drivers / mtd / chips / cfi_cmdset_0001.c
index 44cbfc093ecc03f75a51b77fc37e295610dc82e6..a8c3e1c9b02a78a64a79f5701abac9d1ba29a3e4 100644 (file)
@@ -455,6 +455,7 @@ struct mtd_info *cfi_cmdset_0001(struct map_info *map, int primary)
        mtd->flags   = MTD_CAP_NORFLASH;
        mtd->name    = map->name;
        mtd->writesize = 1;
+       mtd->writebufsize = 1 << cfi->cfiq->MaxBufWriteSize;
 
        mtd->reboot_notifier.notifier_call = cfi_intelext_reboot;