diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-06-12 20:59:25 +0200 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2010-07-08 16:49:50 -0500 |
commit | 3e9b349c7f0873a38d7064be52b9d8cc0afae28f (patch) | |
tree | 5359230348c79582e6cd5ff52264506b741250a8 /drivers/mtd | |
parent | 54841ab50c20d6fa6c9cc3eb826989da3a22d934 (diff) | |
download | u-boot-imx-3e9b349c7f0873a38d7064be52b9d8cc0afae28f.zip u-boot-imx-3e9b349c7f0873a38d7064be52b9d8cc0afae28f.tar.gz u-boot-imx-3e9b349c7f0873a38d7064be52b9d8cc0afae28f.tar.bz2 |
NAND: show manufacturer and device ID for unknown chips
When the NAND part is not supported, it is useful to show the manufacturer
and device ID to help debugging and reporting.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 7171bdd..ed1c9c9 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -2652,8 +2652,12 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd, } } - if (!type) + if (!type) { + printk(KERN_INFO "%s: unknown NAND device: Manufacturer ID:" + " 0x%02x, Chip ID: 0x%02x\n", __func__, + *maf_id, dev_id); return ERR_PTR(-ENODEV); + } if (!mtd->name) mtd->name = type->name; |