linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mtd nand : print flash size during detection
@ 2012-11-06 11:03 Matthieu CASTET
  2012-11-07  6:22 ` Huang Shijie
  2012-11-16  8:24 ` Artem Bityutskiy
  0 siblings, 2 replies; 7+ messages in thread
From: Matthieu CASTET @ 2012-11-06 11:03 UTC (permalink / raw)
  To: linux-mtd; +Cc: Matthieu CASTET, dedekind1

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>
---
 drivers/mtd/nand/nand_base.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index c90ef66..8916bc6 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -3292,10 +3292,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;
 }
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-11-22 17:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-06 11:03 [PATCH] mtd nand : print flash size during detection Matthieu CASTET
2012-11-07  6:22 ` Huang Shijie
2012-11-22 17:19   ` Matthieu CASTET
2012-11-16  8:24 ` Artem Bityutskiy
2012-11-16  8:38   ` Huang Shijie
2012-11-22 17:36     ` Matthieu CASTET
2012-11-22 17:20   ` Matthieu CASTET

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).