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

Commit 3723e93c authored by Huang Shijie's avatar Huang Shijie Committed by Brian Norris
Browse files

mtd: nand: print out the cell information for nand chip



Print out the cell information for nand chip.

(Since the message is too long, this patch also splits the log
with two separate pr_info())

Signed-off-by: default avatarHuang Shijie <b32955@freescale.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 13fbd179
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -3461,11 +3461,13 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd,
	if (mtd->writesize > 512 && chip->cmdfunc == nand_command)
		chip->cmdfunc = nand_command_lp;

	pr_info("NAND device: Manufacturer ID: 0x%02x, Chip ID: 0x%02x (%s %s),"
		" %dMiB, page size: %d, OOB size: %d\n",
	pr_info("NAND device: Manufacturer ID: 0x%02x, Chip ID: 0x%02x (%s %s)\n",
		*maf_id, *dev_id, nand_manuf_ids[maf_idx].name,
		chip->onfi_version ? chip->onfi_params.model : type->name,
		(int)(chip->chipsize >> 20), mtd->writesize, mtd->oobsize);
		chip->onfi_version ? chip->onfi_params.model : type->name);

	pr_info("NAND device: %dMiB, %s, page size: %d, OOB size: %d\n",
		(int)(chip->chipsize >> 20), nand_is_slc(chip) ? "SLC" : "MLC",
		mtd->writesize, mtd->oobsize);

	return type;
}