Module Name:    src
Committed By:   tsutsui
Date:           Thu Jan  2 17:47:23 UTC 2014

Modified Files:
        src/sys/arch/luna68k/stand/boot: sc.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.4 -r1.5 src/sys/arch/luna68k/stand/boot/sc.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/luna68k/stand/boot/sc.c
diff -u src/sys/arch/luna68k/stand/boot/sc.c:1.4 src/sys/arch/luna68k/stand/boot/sc.c:1.5
--- src/sys/arch/luna68k/stand/boot/sc.c:1.4	Tue Jan 22 15:48:40 2013
+++ src/sys/arch/luna68k/stand/boot/sc.c	Thu Jan  2 17:47:23 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: sc.c,v 1.4 2013/01/22 15:48:40 tsutsui Exp $	*/
+/*	$NetBSD: sc.c,v 1.5 2014/01/02 17:47:23 tsutsui Exp $	*/
 
 /*
  * Copyright (c) 1992 OMRON Corporation.
@@ -191,10 +191,10 @@ issue_select(struct scsidevice *hd, u_ch
 	hd->scsi_pctl = 0;
 	hd->scsi_temp = (1 << SCSI_ID) | (1 << target);
 
-	/* 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;
 

Reply via email to