From: Matthieu CASTET Date: Thu, 22 Nov 2012 17:33:40 +0000 (+0100) Subject: mtd: nand: print flash size during detection X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2fd71a294a0aac407ec69e04916dc28eb39c8ac0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Matthieu CASTET Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 7738432c62dd..6f58e1633e2f 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -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; }