Re: More info: ATA hang on resume (fwd)

From: Randy Bush <randy_at_psg.com>
Date: Wed, 31 Dec 2003 07:05:51 -0800
sad to say, the appended patch did NOT fix the problem i
have with resume on a thinkpad t40p

randy

---

--- ata-all.c.orig	Mon Dec  1 20:24:13 2003
+++ ata-all.c	Thu Dec 25 00:00:44 2003
_at__at_ -230,6 +230,7 _at__at_
 int
 ata_reinit(struct ata_channel *ch)
 {
+    int i;
     struct ata_request *request = ch->running;
     int devices, misdev, newdev;
     
_at__at_ -241,7 +242,11 _at__at_
     ATA_FORCELOCK_CH(ch, ATA_CONTROL);
     ch->running = NULL;
     devices = ch->devices;
-    ch->hw.reset(ch);
+    for (i=0; i < 10; i++) {
+        ch->hw.reset(ch);
+        if (devices == ch->devices)
+            break;
+    }
     ATA_UNLOCK_CH(ch);
 
     /* detach what left the channel during reset */
Received on Wed Dec 31 2003 - 06:05:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:36 UTC