Module Name:    src
Committed By:   tsutsui
Date:           Thu Jan  2 17:43:33 UTC 2014

Modified Files:
        src/sys/arch/hp300/stand/common: scsi.c

Log Message:
Change the SCSI select timeout from 2ms to 250ms as kernel spc(4) driver does.

Noticed by miod@openbsd.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/hp300/stand/common/scsi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hp300/stand/common/scsi.c
diff -u src/sys/arch/hp300/stand/common/scsi.c:1.10 src/sys/arch/hp300/stand/common/scsi.c:1.11
--- src/sys/arch/hp300/stand/common/scsi.c:1.10	Tue Feb  8 20:20:14 2011
+++ src/sys/arch/hp300/stand/common/scsi.c	Thu Jan  2 17:43:32 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: scsi.c,v 1.10 2011/02/08 20:20:14 rmind Exp $	*/
+/*	$NetBSD: scsi.c,v 1.11 2014/01/02 17:43:32 tsutsui Exp $	*/
 
 /*
  * This is reported to fix some odd failures when disklabeling
@@ -181,10 +181,10 @@ issue_select(volatile struct scsidevice 
 
 	hd->scsi_pctl = 0;
 	hd->scsi_temp = (1 << target) | our_addr;
-	/* select timeout is hardcoded to 2ms */
-	hd->scsi_tch = 0;
-	hd->scsi_tcm = 32;
-	hd->scsi_tcl = 4;
+	/* select timeout is hardcoded to 250ms */
+	hd->scsi_tch = 2;
+	hd->scsi_tcm = 113;
+	hd->scsi_tcl = 3;
 
 	hd->scsi_scmd = SCMD_SELECT;
 	return 0;

Reply via email to