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

Commit 2fd71a29 authored by Matthieu CASTET's avatar Matthieu CASTET Committed by Artem Bityutskiy
Browse files

mtd: nand: print flash size during detection



This help to detect bad flash identification in case the size is not present
on the name (ONFI).

Signed-off-by: default avatarMatthieu CASTET <matthieu.castet@parrot.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent ca6a2489
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3293,10 +3293,10 @@ ident_done:
		chip->cmdfunc = nand_command_lp;

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

	return type;
}