Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17ffc7ba authored by Artem B. Bityutskiy's avatar Artem B. Bityutskiy
Browse files

[MTD] Initialize 'writesize'

parent 1794c130
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -357,6 +357,7 @@ struct mtd_info *cfi_cmdset_0001(struct map_info *map, int primary)
	mtd->resume  = cfi_intelext_resume;
	mtd->flags   = MTD_CAP_NORFLASH;
	mtd->name    = map->name;
	mtd->writesize = 1;

	mtd->reboot_notifier.notifier_call = cfi_intelext_reboot;

+1 −0
Original line number Diff line number Diff line
@@ -256,6 +256,7 @@ static struct mtd_info *jedec_probe(struct map_info *map)
   MTD->name = map->name;
   MTD->type = MTD_NORFLASH;
   MTD->flags = MTD_CAP_NORFLASH;
   MTD->writesize = 1;
   MTD->erasesize = SectorSize*(map->buswidth);
   //   printk("MTD->erasesize is %x\n",(unsigned int)MTD->erasesize);
   MTD->size = priv->size;
+2 −1
Original line number Diff line number Diff line
@@ -65,6 +65,7 @@ static struct mtd_info *map_absent_probe(struct map_info *map)
	mtd->sync 	= map_absent_sync;
	mtd->flags 	= 0;
	mtd->erasesize  = PAGE_SIZE;
	mtd->writesize  = 1;

	__module_get(THIS_MODULE);
	return mtd;
+1 −0
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ static struct mtd_info *map_ram_probe(struct map_info *map)
	mtd->write = mapram_write;
	mtd->sync = mapram_nop;
	mtd->flags = MTD_CAP_RAM;
	mtd->writesize = 1;

	mtd->erasesize = PAGE_SIZE;
 	while(mtd->size & (mtd->erasesize - 1))
+1 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ static struct mtd_info *map_rom_probe(struct map_info *map)
	mtd->sync = maprom_nop;
	mtd->flags = MTD_CAP_ROM;
	mtd->erasesize = map->size;
	mtd->writesize = 1;

	__module_get(THIS_MODULE);
	return mtd;
Loading