Skip to contentSkip to conversation

mtd: cfi_probe: print manufacturer and id of probed chip

PATCH Applied Guillaume LECERF 2 participants 2 messages Jun 29, 2010 – Jul 13, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: cfi_probe: print manufacturer and id of probed chip

2010/6/29 Artem Bityutskiy <[email protected]>:

Quoted 2 lines

This is not a debugging print, so I think you should do it in a more user-friendly way. E.g., "manufect. ID %#08x, chip id %#08x".

OK, here it is again.

---
 drivers/mtd/chips/cfi_probe.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/chips/cfi_probe.c +2 -2
index b2acd32..8f5b96a 100644
@@ -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;
 }
#1 lore raw
Quoted 7 lines · Guillaume LECERF

2010/6/29 Artem Bityutskiy <[email protected]>:

Quoted 2 lines

This is not a debugging print, so I think you should do it in a more user-friendly way. E.g., "manufect. ID %#08x, chip id %#08x".

OK, here it is again.

Pushed to l2-mtd-2.6.git / master

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)