From terry@uivlsi.csl.uiuc.edu  Thu Dec 29 21:52:30 1994
Received: from uivlsi.csl.uiuc.edu (uivlsi.csl.uiuc.edu [128.174.57.133]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id VAA12905 for <FreeBSD-gnats-submit@freebsd.org>; Thu, 29 Dec 1994 21:52:29 -0800
Received: by uivlsi.csl.uiuc.edu id AA22337
  (5.67b/IDA-1.3.4 for FreeBSD-gnats-submit@freebsd.org); Thu, 29 Dec 1994 23:52:19 -0600
Message-Id: <199412300552.AA22337@uivlsi.csl.uiuc.edu>
Date: Thu, 29 Dec 1994 23:52:19 -0600
From: Terry Lee <terry@uivlsi.csl.uiuc.edu>
To: FreeBSD-gnats-submit@freebsd.org
Subject: wt DELAY patch

>Number:         97
>Category:       kern
>Synopsis:       DELAY needed in wtstatus()
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    core
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan  8 13:57:46 1995
>Closed-Date:    Sun Jan  8 13:57:46 1995
>Last-Modified:  Thu Sep 13 12:53:25 GMT 2007
>Originator:     Terry Lee
>Release:        FreeBSD 2.0.5-RELEASE i386
>Organization:
University of Illinois
>Environment:

	Wangtek PC-02 QIC-02 controller with Cipher 150MB tape drive

>Description:

	Any attemp to open /dev/rwt0 hangs.

>How-To-Repeat:

	tar tf /dev/rwt0

>Fix:
	
	The following patch to /sys/i386/isa/wt.c is derived from Mikael
Hybsch's wt driver.

*** wt.c.orig	Tue Oct 25 03:57:39 1994
--- wt.c	Thu Dec 29 22:21:58 1994
***************
*** 926,931 ****
--- 926,932 ----
  
  		outb (t->CTLPORT, t->REQUEST | t->ONLINE); /* set request */
  		wtpoll (t, t->BUSY, 0);                 /* wait for not ready */
+ 		DELAY(20);
  		outb (t->CTLPORT, t->ONLINE);           /* unset request */
  	}
  	splx(x);
>Release-Note:
>Audit-Trail:
>Unformatted:



X-send-pr-version: 3.2
