aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_base.c
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2013-09-25 02:58:14 -0400
committerBrian Norris <computersforpeace@gmail.com>2013-10-27 19:27:05 -0400
commit3723e93c6499d74041c9768aeb921b36490b9585 (patch)
treeea53da2295445de45703ccbac4e6be0280beb098 /drivers/mtd/nand/nand_base.c
parent13fbd17941db6af61337d909fd09b9c7f7634632 (diff)
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: Huang Shijie <b32955@freescale.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/nand_base.c')
-rw-r--r--drivers/mtd/nand/nand_base.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 137d6c501f19..55c80efb3081 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -3461,11 +3461,13 @@ ident_done:
3461 if (mtd->writesize > 512 && chip->cmdfunc == nand_command) 3461 if (mtd->writesize > 512 && chip->cmdfunc == nand_command)
3462 chip->cmdfunc = nand_command_lp; 3462 chip->cmdfunc = nand_command_lp;
3463 3463
3464 pr_info("NAND device: Manufacturer ID: 0x%02x, Chip ID: 0x%02x (%s %s)," 3464 pr_info("NAND device: Manufacturer ID: 0x%02x, Chip ID: 0x%02x (%s %s)\n",
3465 " %dMiB, page size: %d, OOB size: %d\n",
3466 *maf_id, *dev_id, nand_manuf_ids[maf_idx].name, 3465 *maf_id, *dev_id, nand_manuf_ids[maf_idx].name,
3467 chip->onfi_version ? chip->onfi_params.model : type->name, 3466 chip->onfi_version ? chip->onfi_params.model : type->name);
3468 (int)(chip->chipsize >> 20), mtd->writesize, mtd->oobsize); 3467
3468 pr_info("NAND device: %dMiB, %s, page size: %d, OOB size: %d\n",
3469 (int)(chip->chipsize >> 20), nand_is_slc(chip) ? "SLC" : "MLC",
3470 mtd->writesize, mtd->oobsize);
3469 3471
3470 return type; 3472 return type;
3471} 3473}