mtd: cfi_probe: print manufacturer and id of probed chip

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Aug 4 06:59:03 EDT 2010


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=771a115a6df06c45cf783e24c3f1f08b3e9aac4c
Commit:     771a115a6df06c45cf783e24c3f1f08b3e9aac4c
Parent:     30fe8115b55223cb84530ce04c4a20ba9d6dcf0b
Author:     Guillaume LECERF <glecerf at gmail.com>
AuthorDate: Tue Jun 29 10:32:37 2010 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Aug 2 09:05:20 2010 +0100

    mtd: cfi_probe: print manufacturer and id of probed chip
    
    Signed-off-by: Guillaume LECERF <glecerf at gmail.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/chips/cfi_probe.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/chips/cfi_probe.c b/drivers/mtd/chips/cfi_probe.c
index b2acd32..8f5b96a 100644
--- a/drivers/mtd/chips/cfi_probe.c
+++ b/drivers/mtd/chips/cfi_probe.c
@@ -235,9 +235,9 @@ static int __xipram cfi_chip_setup(struct map_info *map,
 	cfi_qry_mode_off(base, map, cfi);
 	xip_allowed(base, map);
 
-	printk(KERN_INFO "%s: Found %d x%d devices at 0x%x in %d-bit bank\n",
+	printk(KERN_INFO "%s: Found %d x%d devices at 0x%x in %d-bit bank. Manufacturer ID %#08x Chip ID %#08x\n",
 	       map->name, cfi->interleave, cfi->device_type*8, base,
-	       map->bankwidth*8);
+	       map->bankwidth*8, cfi->mfr, cfi->id);
 
 	return 1;
 }



More information about the linux-mtd-cvs mailing list