Subject: Re: SCSI status ?
To: Jan-Uwe Finck <jufi@nerdnet.de>
From: Mike Pumford <mpumford@black-star.demon.co.uk>
List: port-acorn32
Date: 01/21/2002 22:51:46
This is a multipart MIME message.

--==_Exmh_1748698280
Content-Type: text/plain; charset=us-ascii

> On Mon, Jan 21, 2002 at 08:16:27PM +0000, Mike Pumford wrote:

> Yes, I can and will, of course :-)
> 
Well I've attached an experimental patch against current. I don't know if it 
will adapt to the 1.5 release branch.

The patch compiles but of course I can't tell if it has any effect. Let me 
know how you get on.

Mike


--==_Exmh_1748698280
Content-Type: application/x-patch ; name="esc.patch"
Content-Description: esc.patch
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="esc.patch"

Index: esc.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/syssrc/sys/arch/acorn32/podulebus/esc.c,v
retrieving revision 1.3
diff -u -r1.3 esc.c
--- esc.c	2001/11/27 00:53:12	1.3
+++ esc.c	2002/01/21 22:49:11
@@ -324,9 +324,13 @@
 		escicmd(dev, pendp);
 		TAILQ_INSERT_TAIL(&dev->sc_xs_free, pendp, link);
 		splx(s);
-	} else {
-		escgo(dev, pendp);
+	} else if (escgo(dev, pendp) =3D=3D 0 && =

+		   pendp->xs->error !=3D XS_SELTIMEOUT) {
 		return;
+	}
+	else {
+		/* select timed out complete the command. */
+		esc_scsidone(dev,pendp->xs,-1);
 	}
 }
 =


--==_Exmh_1748698280--