Subject: Re: faulty hard disk driver patch in pcmcia patches
To: John Kohl <jtk@kolvir.arlington.ma.us>
From: enami tsugutomo <enami@ba2.so-net.or.jp>
List: port-i386
Date: 11/18/1996 23:29:30
John Kohl <jtk@kolvir.arlington.ma.us> writes:

> I've excised the bad wd.c patch from the patch kits on ftp.netbsd.org and
> sipb.mit.edu.

Then there is no special patch for wd.c, right?  But my laptop (DEC
HiNote Ultra II) reports "hard error reading ..." on disk access after
resume if using plain wd.c.

At least following part of patch seems to be needed for mine.

enami.
Index: wd.c
===================================================================
RCS file: /a/cvsroot/NetBSD/sys/dev/isa/wd.c,v
retrieving revision 1.1.1.3
diff -c -r1.1.1.3 wd.c
*** wd.c	1996/11/16 16:23:55	1.1.1.3
--- wd.c	1996/11/18 14:26:13
***************
*** 812,818 ****
  			goto bad;
  #endif
  	
! 		if (++wdc->sc_errors < WDIORETRIES)
  			goto restart;
  		wderror(wd, bp, "hard error");
  
--- 812,819 ----
  			goto bad;
  #endif
  	
! 		wdcunwedge(wdc);
! 		if (wdc->sc_errors < WDIORETRIES)
  			goto restart;
  		wderror(wd, bp, "hard error");