Date: Wed, 31 Dec 2003 07:05:51 -0800 From: Randy Bush <randy@psg.com> To: hm@kts.org (Hellmuth Michaelis) Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: More info: ATA hang on resume (fwd) Message-ID: <E1Abhux-0003zx-Ss@ran.psg.com> References: <20031231082417.CCA7610@bert.int.kts.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
@@ -230,6 +230,7 @@
int
ata_reinit(struct ata_channel *ch)
{
+ int i;
struct ata_request *request = ch->running;
int devices, misdev, newdev;
@@ -241,7 +242,11 @@
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1Abhux-0003zx-Ss>
