ide: remove obsoleted "idex=reset" kernel parameter
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 27 Apr 2008 13:38:24 +0000 (15:38 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 27 Apr 2008 13:38:24 +0000 (15:38 +0200)
Remove obsoleted "idex=reset" kernel parameter
(it has been obsoleted since 1 Nov 2004).

Then remove corresponding code from ide_probe_port()
and no longer used ->reset field from ide_hwif_t.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Documentation/ide/ide.txt
drivers/ide/ide-probe.c
drivers/ide/ide.c
include/linux/ide.h

index 8209033d2a7fc2581e50498311ea5b0368b8699d..53e5beda525c85d779d2e33beb84e374e5fc74e0 100644 (file)
@@ -217,8 +217,6 @@ Summary of ide driver parameters for kernel command line
                          As for VLB, it is safest to not specify it.
                          Bigger values are safer than smaller ones.
 
- "idex=reset"          : reset interface after probe
-
  "ide=doubler"         : probe/support IDE doublers on Amiga
 
 There may be more options than shown -- use the source, Luke!
index 4a33100a2314bf6eb77f646f2129c6d2bca75377..004062b5751ebea54ae7f3337d64d6f78d68c06d 100644 (file)
@@ -800,14 +800,9 @@ static int ide_probe_port(ide_hwif_t *hwif)
                if (drive->present)
                        rc = 0;
        }
-       if (hwif->io_ports[IDE_CONTROL_OFFSET] && hwif->reset) {
-               printk(KERN_WARNING "%s: reset\n", hwif->name);
-               hwif->OUTB(12, hwif->io_ports[IDE_CONTROL_OFFSET]);
-               udelay(10);
-               hwif->OUTB(8, hwif->io_ports[IDE_CONTROL_OFFSET]);
-               (void)ide_busy_sleep(hwif);
-       }
+
        local_irq_restore(flags);
+
        /*
         * Use cached IRQ number. It might be (and is...) changed by probe
         * code above
index 3cac96f3b0aa02e51a2c7be7b41311d015a03131..7ccf99a11fb617b4539a613feef040c3af83f7de 100644 (file)
@@ -996,7 +996,7 @@ static int __init ide_setup(char *s)
                 */
                static const char *ide_words[] = {
                        "minus1", "minus2", "minus3", "minus4",
-                       "reset", "minus6", "ata66", "minus8", "minus9",
+                       "minus5", "minus6", "ata66", "minus8", "minus9",
                        "minus10", "four", "qd65xx", "ht6560b", "cmd640_vlb",
                        "dtc2278", "umc8672", "ali14xx", NULL };
 
@@ -1073,9 +1073,7 @@ static int __init ide_setup(char *s)
 #else
                                goto bad_hwif;
 #endif
-                       case -5: /* "reset" */
-                               hwif->reset = 1;
-                               goto obsolete_option;
+                       case -5:
                        case -2:
                        case -1:
                        case 0:
index f80d303e5dcd9c8d1248dda6a6a6245199e9fc50..5f8df20a9e3936c5020d68b7e14673c8f5638841 100644 (file)
@@ -520,7 +520,6 @@ typedef struct hwif_s {
        unsigned        present    : 1; /* this interface exists */
        unsigned        serialized : 1; /* serialized all channel operation */
        unsigned        sharing_irq: 1; /* 1 = sharing irq with another hwif */
-       unsigned        reset      : 1; /* reset after probe */
        unsigned        sg_mapped  : 1; /* sg_table and sg_nents are ready */
        unsigned        mmio       : 1; /* host uses MMIO */