diff options
author | Matthieu CASTET <matthieu.castet@parrot.com> | 2012-11-22 18:33:40 +0100 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-12-03 16:36:52 +0200 |
commit | 2fd71a294a0aac407ec69e04916dc28eb39c8ac0 (patch) | |
tree | 15a2daeeaad270cf10dcfd96c96e6076295369d0 /drivers/mtd | |
parent | ca6a24893073414c549920d93bac57d46d7f3e1e (diff) | |
download | op-kernel-dev-2fd71a294a0aac407ec69e04916dc28eb39c8ac0.zip op-kernel-dev-2fd71a294a0aac407ec69e04916dc28eb39c8ac0.tar.gz |
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 <matthieu.castet@parrot.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 7738432..6f58e16 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; } |