diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2014-10-20 18:01:04 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-11-25 22:01:36 -0500 |
commit | 3755a99157d3b038f9dfe9bb203c520cb9728b93 (patch) | |
tree | 5791f04135021aa1c728354e7ff6cf1643f562d3 /drivers/mtd | |
parent | 806b6ef5676a1c6ea78592174aae15f59bb0a923 (diff) |
mtd: nand: print erase size on init
It may be useful info, e.g. if someone wants to use ubinize.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.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 755995ed87fe..4cbd14552d48 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -3765,9 +3765,9 @@ ident_done: | |||
3765 | pr_info("%s %s\n", nand_manuf_ids[maf_idx].name, | 3765 | pr_info("%s %s\n", nand_manuf_ids[maf_idx].name, |
3766 | type->name); | 3766 | type->name); |
3767 | 3767 | ||
3768 | pr_info("%dMiB, %s, page size: %d, OOB size: %d\n", | 3768 | pr_info("%d MiB, %s, erase size: %d KiB, page size: %d, OOB size: %d\n", |
3769 | (int)(chip->chipsize >> 20), nand_is_slc(chip) ? "SLC" : "MLC", | 3769 | (int)(chip->chipsize >> 20), nand_is_slc(chip) ? "SLC" : "MLC", |
3770 | mtd->writesize, mtd->oobsize); | 3770 | mtd->erasesize >> 10, mtd->writesize, mtd->oobsize); |
3771 | return type; | 3771 | return type; |
3772 | } | 3772 | } |
3773 | 3773 | ||