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

Commit 3755a991 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Brian Norris
Browse files

mtd: nand: print erase size on init



It may be useful info, e.g. if someone wants to use ubinize.

Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 806b6ef5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3765,9 +3765,9 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd,
		pr_info("%s %s\n", nand_manuf_ids[maf_idx].name,
				type->name);

	pr_info("%dMiB, %s, page size: %d, OOB size: %d\n",
	pr_info("%d MiB, %s, erase size: %d KiB, page size: %d, OOB size: %d\n",
		(int)(chip->chipsize >> 20), nand_is_slc(chip) ? "SLC" : "MLC",
		mtd->writesize, mtd->oobsize);
		mtd->erasesize >> 10, mtd->writesize, mtd->oobsize);
	return type;
}