]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ide: remove CONFIG_IDEDISK_MULTI_MODE
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 10 Oct 2008 20:39:26 +0000 (22:39 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 10 Oct 2008 20:39:26 +0000 (22:39 +0200)
Use multi PIO by default when available and remove no longer
needed CONFIG_IDEDISK_MULTI_MODE (it should be safe nowadays,
despite to what help entry has been saying).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/Kconfig
drivers/ide/ide-probe.c

index 052879a6f8534bf55296e48918c030178f5f99b7..b50b5dac95b0f75a49d9da5aeae42e1db2d87a2c 100644 (file)
@@ -131,29 +131,6 @@ config BLK_DEV_IDEDISK
 
          If unsure, say Y.
 
-config IDEDISK_MULTI_MODE
-       bool "Use multiple sector mode for Programmed Input/Output by default"
-       help
-         This setting is irrelevant for most IDE disks, with direct memory
-         access, to which multiple sector mode does not apply. Multiple sector
-         mode is a feature of most modern IDE hard drives, permitting the
-         transfer of multiple sectors per Programmed Input/Output interrupt,
-         rather than the usual one sector per interrupt. When this feature is
-         enabled, it can reduce operating system overhead for disk Programmed
-         Input/Output. On some systems, it also can increase the data
-         throughput of Programmed Input/Output. Some drives, however, seemed
-         to run slower with multiple sector mode enabled. Some drives claimed
-         to support multiple sector mode, but lost data at some settings.
-         Under rare circumstances, such failures could result in massive
-         filesystem corruption.
-
-         If you get the following error, try to say Y here:
-
-         hda: set_multmode: status=0x51 { DriveReady SeekComplete Error }
-         hda: set_multmode: error=0x04 { DriveStatusError }
-
-         If in doubt, say N.
-
 config BLK_DEV_IDECS
        tristate "PCMCIA IDE support"
        depends on PCMCIA
index 8cfce50c71e4ec110c257e0ddf595e1c37465f29..9926e12783bb8d997bdacc36745f3941329c3711 100644 (file)
@@ -89,16 +89,14 @@ static void ide_disk_init_mult_count(ide_drive_t *drive)
        u8 max_multsect = id[ATA_ID_MAX_MULTSECT] & 0xff;
 
        if (max_multsect) {
-#ifdef CONFIG_IDEDISK_MULTI_MODE
                if ((max_multsect / 2) > 1)
                        id[ATA_ID_MULTSECT] = max_multsect | 0x100;
                else
                        id[ATA_ID_MULTSECT] &= ~0x1ff;
 
                drive->mult_req = id[ATA_ID_MULTSECT] & 0xff;
-#endif
-               if ((id[ATA_ID_MULTSECT] & 0x100) &&
-                   (id[ATA_ID_MULTSECT] & 0xff))
+
+               if (drive->mult_req)
                        drive->special.b.set_multmode = 1;
        }
 }