diff options
-rw-r--r-- | drivers/ide/ide-probe.c | 4 | ||||
-rw-r--r-- | include/linux/ide.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index edf650b20c67..cdb81471102a 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
@@ -129,6 +129,10 @@ static inline void do_identify (ide_drive_t *drive, u8 cmd) | |||
129 | 129 | ||
130 | drive->id_read = 1; | 130 | drive->id_read = 1; |
131 | local_irq_enable(); | 131 | local_irq_enable(); |
132 | #ifdef DEBUG | ||
133 | printk(KERN_INFO "%s: dumping identify data\n", drive->name); | ||
134 | ide_dump_identify((u8 *)id); | ||
135 | #endif | ||
132 | ide_fix_driveid(id); | 136 | ide_fix_driveid(id); |
133 | 137 | ||
134 | #if defined (CONFIG_SCSI_EATA_PIO) || defined (CONFIG_SCSI_EATA) | 138 | #if defined (CONFIG_SCSI_EATA_PIO) || defined (CONFIG_SCSI_EATA) |
diff --git a/include/linux/ide.h b/include/linux/ide.h index 7072c535f7cf..34542186fb15 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1288,6 +1288,11 @@ extern struct bus_type ide_bus_type; | |||
1288 | #define ide_id_has_flush_cache_ext(id) \ | 1288 | #define ide_id_has_flush_cache_ext(id) \ |
1289 | (((id)->cfs_enable_2 & 0x2400) == 0x2400) | 1289 | (((id)->cfs_enable_2 & 0x2400) == 0x2400) |
1290 | 1290 | ||
1291 | static inline void ide_dump_identify(u8 *id) | ||
1292 | { | ||
1293 | print_hex_dump(KERN_INFO, "", DUMP_PREFIX_NONE, 16, 2, id, 512, 0); | ||
1294 | } | ||
1295 | |||
1291 | static inline int hwif_to_node(ide_hwif_t *hwif) | 1296 | static inline int hwif_to_node(ide_hwif_t *hwif) |
1292 | { | 1297 | { |
1293 | struct pci_dev *dev = hwif->pci_dev; | 1298 | struct pci_dev *dev = hwif->pci_dev; |