]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
ide-io fix for resume from STR
authorChris Wright <chrisw@sous-sol.org>
Tue, 27 Jun 2006 18:44:56 +0000 (11:44 -0700)
committerChris Wright <chrisw@sous-sol.org>
Tue, 27 Jun 2006 18:44:56 +0000 (11:44 -0700)
queue-2.6.17/ide-io-increase-timeout-value-to-allow-for-slave-wakeup.patch [new file with mode: 0644]
queue-2.6.17/series

diff --git a/queue-2.6.17/ide-io-increase-timeout-value-to-allow-for-slave-wakeup.patch b/queue-2.6.17/ide-io-increase-timeout-value-to-allow-for-slave-wakeup.patch
new file mode 100644 (file)
index 0000000..d94a592
--- /dev/null
@@ -0,0 +1,34 @@
+From stable-bounces@linux.kernel.org  Mon Jun 26 23:43:11 2006
+Date: Mon, 26 Jun 2006 00:26:13 -0700
+From: akpm@osdl.org
+To: torvalds@osdl.org
+Cc: B.Zolnierkiewicz@elka.pw.edu.pl, a1426z@gawab.com, stable@kernel.org, alan@lxorguk.ukuu.org.uk
+Subject: ide-io: increase timeout value to allow for slave wakeup
+
+From: Al Boldi <a1426z@gawab.com>
+
+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>
+Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
+Cc: <stable@kernel.org>
+Signed-off-by: Andrew Morton <akpm@osdl.org>
+Signed-off-by: Chris Wright <chrisw@sous-sol.org>
+---
+
+ drivers/ide/ide-io.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- linux-2.6.17.1.orig/drivers/ide/ide-io.c
++++ linux-2.6.17.1/drivers/ide/ide-io.c
+@@ -932,7 +932,7 @@ static ide_startstop_t start_request (id
+                       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);
+       }
index b1910dcc5c9cd99713214437e6769ab16be27412..a63aecdb3008bd9d0148dd59246dcb9ba2bf8624 100644 (file)
@@ -17,3 +17,4 @@ ipv6-fix-source-address-selection.patch
 ipv6-addrconf-fix-default-source-address-selection-without-config_ipv6_privacy.patch
 ohci1394-fix-broken-suspend-resume-in-ohci1394.patch
 libata-minor-patch-for-ata_dflag_pio.patch
+ide-io-increase-timeout-value-to-allow-for-slave-wakeup.patch