]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
NAND: Make NAND driver less verbose per default
authorStefan Roese <sr@denx.de>
Thu, 10 Jan 2008 17:47:33 +0000 (18:47 +0100)
committerScott Wood <scottwood@freescale.com>
Tue, 12 Aug 2008 16:31:24 +0000 (11:31 -0500)
This patch turns off printing of bad blocks per default upon bootup.
This can always be shown via the "nand bad" command later.

Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_bbt.c

index f577ed6294c341b3f1dba90c0f6800bdcb3e4994..5661a8e4c7030306552fbcbda0e3f76df61b4753 100644 (file)
@@ -2466,9 +2466,9 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd,
        if (mtd->writesize > 512 && chip->cmdfunc == nand_command)
                chip->cmdfunc = nand_command_lp;
 
-       printk(KERN_INFO "NAND device: Manufacturer ID:"
-              " 0x%02x, Chip ID: 0x%02x (%s %s)\n", *maf_id, dev_id,
-              nand_manuf_ids[maf_idx].name, type->name);
+       MTDDEBUG (MTD_DEBUG_LEVEL0, "NAND device: Manufacturer ID:"
+                 " 0x%02x, Chip ID: 0x%02x (%s %s)\n", *maf_id, dev_id,
+                 nand_manuf_ids[maf_idx].name, type->name);
 
        return type;
 }
index acf1cf543397984930213fc193ef4d2ad699eabe..84479473b6d4408f1fcef744ef845ec1f1b6a798 100644 (file)
@@ -391,7 +391,7 @@ static int create_bbt(struct mtd_info *mtd, uint8_t *buf,
        loff_t from;
        size_t readlen;
 
-       printk(KERN_INFO "Scanning device for bad blocks\n");
+       MTDDEBUG (MTD_DEBUG_LEVEL0, "Scanning device for bad blocks\n");
 
        if (bd->options & NAND_BBT_SCANALLPAGES)
                len = 1 << (this->bbt_erase_shift - this->page_shift);
@@ -444,8 +444,9 @@ static int create_bbt(struct mtd_info *mtd, uint8_t *buf,
 
                if (ret) {
                        this->bbt[i >> 3] |= 0x03 << (i & 0x6);
-                       printk(KERN_WARNING "Bad eraseblock %d at 0x%08x\n",
-                              i >> 1, (unsigned int)from);
+                       MTDDEBUG (MTD_DEBUG_LEVEL0,
+                                 "Bad eraseblock %d at 0x%08x\n",
+                                 i >> 1, (unsigned int)from);
                        mtd->ecc_stats.badblocks++;
                }