diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/ide-cd.c | 4 | ||||
-rw-r--r-- | drivers/ide/ide-probe.c | 10 | ||||
-rw-r--r-- | drivers/ide/ide.c | 7 |
3 files changed, 5 insertions, 16 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index ad984322da94..164adc3a48a2 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -1909,9 +1909,7 @@ static int ide_cdrom_setup(ide_drive_t *drive) | |||
1909 | /* set correct block size */ | 1909 | /* set correct block size */ |
1910 | blk_queue_hardsect_size(drive->queue, CD_FRAMESIZE); | 1910 | blk_queue_hardsect_size(drive->queue, CD_FRAMESIZE); |
1911 | 1911 | ||
1912 | if (drive->autotune == IDE_TUNE_DEFAULT || | 1912 | drive->dsc_overlap = (drive->next != drive); |
1913 | drive->autotune == IDE_TUNE_AUTO) | ||
1914 | drive->dsc_overlap = (drive->next != drive); | ||
1915 | 1913 | ||
1916 | if (ide_cdrom_register(drive, nslots)) { | 1914 | if (ide_cdrom_register(drive, nslots)) { |
1917 | printk(KERN_ERR "%s: %s failed to register device with the" | 1915 | printk(KERN_ERR "%s: %s failed to register device with the" |
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 004062b5751e..9b0a3cba2b03 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
@@ -472,9 +472,7 @@ static int do_probe (ide_drive_t *drive, u8 cmd) | |||
472 | if (stat == (BUSY_STAT | READY_STAT)) | 472 | if (stat == (BUSY_STAT | READY_STAT)) |
473 | return 4; | 473 | return 4; |
474 | 474 | ||
475 | if ((rc == 1 && cmd == WIN_PIDENTIFY) && | 475 | if (rc == 1 && cmd == WIN_PIDENTIFY) { |
476 | ((drive->autotune == IDE_TUNE_DEFAULT) || | ||
477 | (drive->autotune == IDE_TUNE_AUTO))) { | ||
478 | printk(KERN_ERR "%s: no response (status = 0x%02x), " | 476 | printk(KERN_ERR "%s: no response (status = 0x%02x), " |
479 | "resetting drive\n", drive->name, stat); | 477 | "resetting drive\n", drive->name, stat); |
480 | msleep(50); | 478 | msleep(50); |
@@ -829,13 +827,9 @@ static void ide_port_tune_devices(ide_hwif_t *hwif) | |||
829 | ide_drive_t *drive = &hwif->drives[unit]; | 827 | ide_drive_t *drive = &hwif->drives[unit]; |
830 | 828 | ||
831 | if (drive->present) { | 829 | if (drive->present) { |
832 | if (drive->autotune == IDE_TUNE_AUTO) | 830 | if (drive->autotune) |
833 | ide_set_max_pio(drive); | 831 | ide_set_max_pio(drive); |
834 | 832 | ||
835 | if (drive->autotune != IDE_TUNE_DEFAULT && | ||
836 | drive->autotune != IDE_TUNE_AUTO) | ||
837 | continue; | ||
838 | |||
839 | drive->nice1 = 1; | 833 | drive->nice1 = 1; |
840 | 834 | ||
841 | if (hwif->dma_ops) | 835 | if (hwif->dma_ops) |
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index a33840d11770..8eb7f83b0dda 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -900,7 +900,7 @@ static int __init ide_setup(char *s) | |||
900 | if (s[0] == 'h' && s[1] == 'd' && s[2] >= 'a' && s[2] <= max_drive) { | 900 | if (s[0] == 'h' && s[1] == 'd' && s[2] >= 'a' && s[2] <= max_drive) { |
901 | const char *hd_words[] = { | 901 | const char *hd_words[] = { |
902 | "none", "noprobe", "nowerr", "cdrom", "nodma", | 902 | "none", "noprobe", "nowerr", "cdrom", "nodma", |
903 | "autotune", "noautotune", "-8", "-9", "-10", | 903 | "autotune", "-7", "-8", "-9", "-10", |
904 | "noflush", "remap", "remap63", "scsi", NULL }; | 904 | "noflush", "remap", "remap63", "scsi", NULL }; |
905 | unit = s[2] - 'a'; | 905 | unit = s[2] - 'a'; |
906 | hw = unit / MAX_DRIVES; | 906 | hw = unit / MAX_DRIVES; |
@@ -929,10 +929,7 @@ static int __init ide_setup(char *s) | |||
929 | drive->nodma = 1; | 929 | drive->nodma = 1; |
930 | goto done; | 930 | goto done; |
931 | case -6: /* "autotune" */ | 931 | case -6: /* "autotune" */ |
932 | drive->autotune = IDE_TUNE_AUTO; | 932 | drive->autotune = 1; |
933 | goto obsolete_option; | ||
934 | case -7: /* "noautotune" */ | ||
935 | drive->autotune = IDE_TUNE_NOAUTO; | ||
936 | goto obsolete_option; | 933 | goto obsolete_option; |
937 | case -11: /* noflush */ | 934 | case -11: /* noflush */ |
938 | drive->noflush = 1; | 935 | drive->noflush = 1; |