aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-26 11:36:38 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-26 11:36:38 -0400
commit951784b667d78dad52ffea0a958fdbe14da97972 (patch)
tree41e7759cab09e2f107df7806661acef4ff50777b
parentcb5528ab19ece76be5299b33746ca7d58c187a26 (diff)
ide: remove IDE_HFLAG_CY82C693 host flag
Sergei suggested that it shouldn't be necessary + it had no effect anyway since ide_id_dma_bug() is called earlier in ide_tune_dma(). Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r--drivers/ide/ide-dma.c10
-rw-r--r--drivers/ide/pci/cy82c693.c2
-rw-r--r--include/linux/ide.h2
3 files changed, 3 insertions, 11 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
index d61e5788d310..aaece2c06c9d 100644
--- a/drivers/ide/ide-dma.c
+++ b/drivers/ide/ide-dma.c
@@ -703,14 +703,8 @@ static int ide_tune_dma(ide_drive_t *drive)
703 703
704 speed = ide_max_dma_mode(drive); 704 speed = ide_max_dma_mode(drive);
705 705
706 if (!speed) { 706 if (!speed)
707 /* is this really correct/needed? */ 707 return 0;
708 if ((hwif->host_flags & IDE_HFLAG_CY82C693) &&
709 ide_dma_good_drive(drive))
710 return 1;
711 else
712 return 0;
713 }
714 708
715 if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE) 709 if (hwif->host_flags & IDE_HFLAG_NO_SET_MODE)
716 return 1; 710 return 1;
diff --git a/drivers/ide/pci/cy82c693.c b/drivers/ide/pci/cy82c693.c
index f68b89a05823..833fa4de3081 100644
--- a/drivers/ide/pci/cy82c693.c
+++ b/drivers/ide/pci/cy82c693.c
@@ -410,7 +410,7 @@ static const struct ide_port_info cy82c693_chipset __devinitdata = {
410 .init_iops = init_iops_cy82c693, 410 .init_iops = init_iops_cy82c693,
411 .init_hwif = init_hwif_cy82c693, 411 .init_hwif = init_hwif_cy82c693,
412 .chipset = ide_cy82c693, 412 .chipset = ide_cy82c693,
413 .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_CY82C693, 413 .host_flags = IDE_HFLAG_SINGLE,
414 .pio_mask = ATA_PIO4, 414 .pio_mask = ATA_PIO4,
415 .swdma_mask = ATA_SWDMA2, 415 .swdma_mask = ATA_SWDMA2,
416 .mwdma_mask = ATA_MWDMA2, 416 .mwdma_mask = ATA_MWDMA2,
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 4997751591a3..cd8deba68cb2 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1085,8 +1085,6 @@ enum {
1085 /* unmask IRQs */ 1085 /* unmask IRQs */
1086 IDE_HFLAG_UNMASK_IRQS = (1 << 25), 1086 IDE_HFLAG_UNMASK_IRQS = (1 << 25),
1087 IDE_HFLAG_ABUSE_SET_DMA_MODE = (1 << 26), 1087 IDE_HFLAG_ABUSE_SET_DMA_MODE = (1 << 26),
1088 /* host is CY82C693 */
1089 IDE_HFLAG_CY82C693 = (1 << 27),
1090 /* force host out of "simplex" mode */ 1088 /* force host out of "simplex" mode */
1091 IDE_HFLAG_CLEAR_SIMPLEX = (1 << 28), 1089 IDE_HFLAG_CLEAR_SIMPLEX = (1 << 28),
1092 /* DSC overlap is unsupported */ 1090 /* DSC overlap is unsupported */