]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ide-io: increase timeout value to allow for slave wakeup
authorAl Boldi <a1426z@gawab.com>
Fri, 18 Aug 2006 19:30:53 +0000 (21:30 +0200)
committerAdrian Bunk <bunk@stusta.de>
Fri, 18 Aug 2006 19:30:53 +0000 (21:30 +0200)
During an STR resume cycle, the ide master disk times-out when there is
also a slave present (especially CD).  Increasing the timeout in ide-io
from 10,000 to 100,000 fixes this problem.

Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/ide/ide-io.c

index c01615dec2024f84efba781769a78d341d69a69d..574855456d45d8c539697237e8f2624ea598b689 100644 (file)
@@ -932,7 +932,7 @@ static ide_startstop_t start_request (ide_drive_t *drive, struct request *rq)
                        printk(KERN_WARNING "%s: bus not ready on wakeup\n", drive->name);
                SELECT_DRIVE(drive);
                HWIF(drive)->OUTB(8, HWIF(drive)->io_ports[IDE_CONTROL_OFFSET]);
-               rc = ide_wait_not_busy(HWIF(drive), 10000);
+               rc = ide_wait_not_busy(HWIF(drive), 100000);
                if (rc)
                        printk(KERN_WARNING "%s: drive not ready on wakeup\n", drive->name);
        }