aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ide/ide-iops.c15
-rw-r--r--drivers/ide/ide-taskfile.c5
-rw-r--r--include/linux/ide.h1
3 files changed, 4 insertions, 17 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c
index 99fe50e941be..e00fbbb423bf 100644
--- a/drivers/ide/ide-iops.c
+++ b/drivers/ide/ide-iops.c
@@ -612,21 +612,6 @@ no_80w:
612 return 0; 612 return 0;
613} 613}
614 614
615int ide_ata66_check (ide_drive_t *drive, ide_task_t *args)
616{
617 if (args->tf.command == WIN_SETFEATURES &&
618 args->tf.nsect > XFER_UDMA_2 &&
619 args->tf.feature == SETFEATURES_XFER) {
620 if (eighty_ninty_three(drive) == 0) {
621 printk(KERN_WARNING "%s: UDMA speeds >UDMA33 cannot "
622 "be set\n", drive->name);
623 return 1;
624 }
625 }
626
627 return 0;
628}
629
630#ifdef CONFIG_BLK_DEV_IDEDMA 615#ifdef CONFIG_BLK_DEV_IDEDMA
631static u8 ide_auto_reduce_xfer (ide_drive_t *drive) 616static u8 ide_auto_reduce_xfer (ide_drive_t *drive)
632{ 617{
diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c
index bf72b6d9f685..4e1da1c78cb5 100644
--- a/drivers/ide/ide-taskfile.c
+++ b/drivers/ide/ide-taskfile.c
@@ -798,8 +798,11 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg)
798 tf->nsect >= XFER_SW_DMA_0 && 798 tf->nsect >= XFER_SW_DMA_0 &&
799 (id->dma_ultra || id->dma_mword || id->dma_1word)) { 799 (id->dma_ultra || id->dma_mword || id->dma_1word)) {
800 xfer_rate = args[1]; 800 xfer_rate = args[1];
801 if (ide_ata66_check(drive, &tfargs)) 801 if (tf->nsect > XFER_UDMA_2 && !eighty_ninty_three(drive)) {
802 printk(KERN_WARNING "%s: UDMA speeds >UDMA33 cannot "
803 "be set\n", drive->name);
802 goto abort; 804 goto abort;
805 }
803 } 806 }
804 807
805 err = ide_raw_taskfile(drive, &tfargs, buf, args[3]); 808 err = ide_raw_taskfile(drive, &tfargs, buf, args[3]);
diff --git a/include/linux/ide.h b/include/linux/ide.h
index b41eb7d12cd2..748af8dc0895 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -988,7 +988,6 @@ int ide_task_ioctl(ide_drive_t *, unsigned int, unsigned long);
988extern int system_bus_clock(void); 988extern int system_bus_clock(void);
989 989
990extern int ide_driveid_update(ide_drive_t *); 990extern int ide_driveid_update(ide_drive_t *);
991extern int ide_ata66_check(ide_drive_t *, ide_task_t *);
992extern int ide_config_drive_speed(ide_drive_t *, u8); 991extern int ide_config_drive_speed(ide_drive_t *, u8);
993extern u8 eighty_ninty_three (ide_drive_t *); 992extern u8 eighty_ninty_three (ide_drive_t *);
994extern int taskfile_lib_get_identify(ide_drive_t *drive, u8 *); 993extern int taskfile_lib_get_identify(ide_drive_t *drive, u8 *);