aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-01 17:09:29 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-01 17:09:29 -0500
commitd554336514a63342c2e4b06b4287ad93c112b00f (patch)
tree8a1e9f0b2db38ceaad8fa43669384fd9d8af5783 /drivers
parent7b9f25b539c3fa3c7b8c82775488a0021d90220f (diff)
ide-{floppy,tape}: remove debug code for dumping identify data
IDE core supports dumping raw identify data in hdparm friendly format now so verbose identify dumping in ide-{floppy,tape}.c device drivers (done iff IDE{FLOPPY,TAPE}_DEBUG_INFO is defined to '1' and it is '0' by default) is no longer nedeed. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ide/ide-floppy.c50
-rw-r--r--drivers/ide/ide-tape.c59
2 files changed, 0 insertions, 109 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index ff8232ef9659..cf48b4a46d6d 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -1658,7 +1658,6 @@ static int idefloppy_identify_device (ide_drive_t *drive,struct hd_driveid *id)
1658{ 1658{
1659 struct idefloppy_id_gcw gcw; 1659 struct idefloppy_id_gcw gcw;
1660#if IDEFLOPPY_DEBUG_INFO 1660#if IDEFLOPPY_DEBUG_INFO
1661 u16 mask,i;
1662 char buffer[80]; 1661 char buffer[80];
1663#endif /* IDEFLOPPY_DEBUG_INFO */ 1662#endif /* IDEFLOPPY_DEBUG_INFO */
1664 1663
@@ -1705,55 +1704,6 @@ static int idefloppy_identify_device (ide_drive_t *drive,struct hd_driveid *id)
1705 default: sprintf(buffer, "Reserved");break; 1704 default: sprintf(buffer, "Reserved");break;
1706 } 1705 }
1707 printk(KERN_INFO "Command Packet Size: %s\n", buffer); 1706 printk(KERN_INFO "Command Packet Size: %s\n", buffer);
1708 printk(KERN_INFO "Model: %.40s\n",id->model);
1709 printk(KERN_INFO "Firmware Revision: %.8s\n",id->fw_rev);
1710 printk(KERN_INFO "Serial Number: %.20s\n",id->serial_no);
1711 printk(KERN_INFO "Write buffer size(?): %d bytes\n",id->buf_size*512);
1712 printk(KERN_INFO "DMA: %s",id->capability & 0x01 ? "Yes\n":"No\n");
1713 printk(KERN_INFO "LBA: %s",id->capability & 0x02 ? "Yes\n":"No\n");
1714 printk(KERN_INFO "IORDY can be disabled: %s",id->capability & 0x04 ? "Yes\n":"No\n");
1715 printk(KERN_INFO "IORDY supported: %s",id->capability & 0x08 ? "Yes\n":"Unknown\n");
1716 printk(KERN_INFO "ATAPI overlap supported: %s",id->capability & 0x20 ? "Yes\n":"No\n");
1717 printk(KERN_INFO "PIO Cycle Timing Category: %d\n",id->tPIO);
1718 printk(KERN_INFO "DMA Cycle Timing Category: %d\n",id->tDMA);
1719 printk(KERN_INFO "Single Word DMA supported modes:\n");
1720 for (i=0,mask=1;i<8;i++,mask=mask << 1) {
1721 if (id->dma_1word & mask)
1722 printk(KERN_INFO " Mode %d%s\n", i,
1723 (id->dma_1word & (mask << 8)) ? " (active)" : "");
1724 }
1725 printk(KERN_INFO "Multi Word DMA supported modes:\n");
1726 for (i=0,mask=1;i<8;i++,mask=mask << 1) {
1727 if (id->dma_mword & mask)
1728 printk(KERN_INFO " Mode %d%s\n", i,
1729 (id->dma_mword & (mask << 8)) ? " (active)" : "");
1730 }
1731 if (id->field_valid & 0x0002) {
1732 printk(KERN_INFO "Enhanced PIO Modes: %s\n",
1733 id->eide_pio_modes & 1 ? "Mode 3":"None");
1734 if (id->eide_dma_min == 0)
1735 sprintf(buffer, "Not supported");
1736 else
1737 sprintf(buffer, "%d ns",id->eide_dma_min);
1738 printk(KERN_INFO "Minimum Multi-word DMA cycle per word: %s\n", buffer);
1739 if (id->eide_dma_time == 0)
1740 sprintf(buffer, "Not supported");
1741 else
1742 sprintf(buffer, "%d ns",id->eide_dma_time);
1743 printk(KERN_INFO "Manufacturer\'s Recommended Multi-word cycle: %s\n", buffer);
1744 if (id->eide_pio == 0)
1745 sprintf(buffer, "Not supported");
1746 else
1747 sprintf(buffer, "%d ns",id->eide_pio);
1748 printk(KERN_INFO "Minimum PIO cycle without IORDY: %s\n",
1749 buffer);
1750 if (id->eide_pio_iordy == 0)
1751 sprintf(buffer, "Not supported");
1752 else
1753 sprintf(buffer, "%d ns",id->eide_pio_iordy);
1754 printk(KERN_INFO "Minimum PIO cycle with IORDY: %s\n", buffer);
1755 } else
1756 printk(KERN_INFO "According to the device, fields 64-70 are not valid.\n");
1757#endif /* IDEFLOPPY_DEBUG_INFO */ 1707#endif /* IDEFLOPPY_DEBUG_INFO */
1758 1708
1759 if (gcw.protocol != 2) 1709 if (gcw.protocol != 2)
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index d71a584f0765..65037a8295a1 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -4291,9 +4291,6 @@ static int idetape_identify_device (ide_drive_t *drive)
4291{ 4291{
4292 struct idetape_id_gcw gcw; 4292 struct idetape_id_gcw gcw;
4293 struct hd_driveid *id = drive->id; 4293 struct hd_driveid *id = drive->id;
4294#if IDETAPE_DEBUG_INFO
4295 unsigned short mask,i;
4296#endif /* IDETAPE_DEBUG_INFO */
4297 4294
4298 if (drive->id_read == 0) 4295 if (drive->id_read == 0)
4299 return 1; 4296 return 1;
@@ -4333,62 +4330,6 @@ static int idetape_identify_device (ide_drive_t *drive)
4333 case 1: printk("16 bytes\n");break; 4330 case 1: printk("16 bytes\n");break;
4334 default: printk("Reserved\n");break; 4331 default: printk("Reserved\n");break;
4335 } 4332 }
4336 printk(KERN_INFO "ide-tape: Model: %.40s\n",id->model);
4337 printk(KERN_INFO "ide-tape: Firmware Revision: %.8s\n",id->fw_rev);
4338 printk(KERN_INFO "ide-tape: Serial Number: %.20s\n",id->serial_no);
4339 printk(KERN_INFO "ide-tape: Write buffer size: %d bytes\n",id->buf_size*512);
4340 printk(KERN_INFO "ide-tape: DMA: %s",id->capability & 0x01 ? "Yes\n":"No\n");
4341 printk(KERN_INFO "ide-tape: LBA: %s",id->capability & 0x02 ? "Yes\n":"No\n");
4342 printk(KERN_INFO "ide-tape: IORDY can be disabled: %s",id->capability & 0x04 ? "Yes\n":"No\n");
4343 printk(KERN_INFO "ide-tape: IORDY supported: %s",id->capability & 0x08 ? "Yes\n":"Unknown\n");
4344 printk(KERN_INFO "ide-tape: ATAPI overlap supported: %s",id->capability & 0x20 ? "Yes\n":"No\n");
4345 printk(KERN_INFO "ide-tape: PIO Cycle Timing Category: %d\n",id->tPIO);
4346 printk(KERN_INFO "ide-tape: DMA Cycle Timing Category: %d\n",id->tDMA);
4347 printk(KERN_INFO "ide-tape: Single Word DMA supported modes: ");
4348 for (i=0,mask=1;i<8;i++,mask=mask << 1) {
4349 if (id->dma_1word & mask)
4350 printk("%d ",i);
4351 if (id->dma_1word & (mask << 8))
4352 printk("(active) ");
4353 }
4354 printk("\n");
4355 printk(KERN_INFO "ide-tape: Multi Word DMA supported modes: ");
4356 for (i=0,mask=1;i<8;i++,mask=mask << 1) {
4357 if (id->dma_mword & mask)
4358 printk("%d ",i);
4359 if (id->dma_mword & (mask << 8))
4360 printk("(active) ");
4361 }
4362 printk("\n");
4363 if (id->field_valid & 0x0002) {
4364 printk(KERN_INFO "ide-tape: Enhanced PIO Modes: %s\n",
4365 id->eide_pio_modes & 1 ? "Mode 3":"None");
4366 printk(KERN_INFO "ide-tape: Minimum Multi-word DMA cycle per word: ");
4367 if (id->eide_dma_min == 0)
4368 printk("Not supported\n");
4369 else
4370 printk("%d ns\n",id->eide_dma_min);
4371
4372 printk(KERN_INFO "ide-tape: Manufacturer\'s Recommended Multi-word cycle: ");
4373 if (id->eide_dma_time == 0)
4374 printk("Not supported\n");
4375 else
4376 printk("%d ns\n",id->eide_dma_time);
4377
4378 printk(KERN_INFO "ide-tape: Minimum PIO cycle without IORDY: ");
4379 if (id->eide_pio == 0)
4380 printk("Not supported\n");
4381 else
4382 printk("%d ns\n",id->eide_pio);
4383
4384 printk(KERN_INFO "ide-tape: Minimum PIO cycle with IORDY: ");
4385 if (id->eide_pio_iordy == 0)
4386 printk("Not supported\n");
4387 else
4388 printk("%d ns\n",id->eide_pio_iordy);
4389
4390 } else
4391 printk(KERN_INFO "ide-tape: According to the device, fields 64-70 are not valid.\n");
4392#endif /* IDETAPE_DEBUG_INFO */ 4333#endif /* IDETAPE_DEBUG_INFO */
4393 4334
4394 /* Check that we can support this device */ 4335 /* Check that we can support this device */