Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/dev/ic Pull up revision 1.12 (requested by bouyer):
details: https://anonhg.NetBSD.org/src/rev/5fa6ed256e90
branches: netbsd-1-5
changeset: 490688:5fa6ed256e90
user: he <he%NetBSD.org@localhost>
date: Mon Feb 26 17:47:30 2001 +0000
description:
Pull up revision 1.12 (requested by bouyer):
Don't queue new commands to a device which has sense pending.
diffstat:
sys/dev/ic/siop_common.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 83fb92253314 -r 5fa6ed256e90 sys/dev/ic/siop_common.c
--- a/sys/dev/ic/siop_common.c Mon Feb 26 17:12:59 2001 +0000
+++ b/sys/dev/ic/siop_common.c Mon Feb 26 17:47:30 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siop_common.c,v 1.3.2.2 2000/12/16 01:59:46 he Exp $ */
+/* $NetBSD: siop_common.c,v 1.3.2.3 2001/02/26 17:47:30 he Exp $ */
/*
* Copyright (c) 2000 Manuel Bouyer.
@@ -137,7 +137,10 @@
siop_cmd->siop_tables.id = htole32(sc->targets[target]->id);
memset(siop_cmd->siop_tables.msg_out, 0, 8);
- siop_cmd->siop_tables.msg_out[0] = MSG_IDENTIFY(lun, 1);
+ if (siop_cmd->status != CMDST_SENSE)
+ siop_cmd->siop_tables.msg_out[0] = MSG_IDENTIFY(lun, 1);
+ else
+ siop_cmd->siop_tables.msg_out[0] = MSG_IDENTIFY(lun, 0);
siop_cmd->siop_tables.t_msgout.count= htole32(1);
if (sc->targets[target]->status == TARST_ASYNC) {
if (sc->targets[target]->flags & TARF_WIDE) {
Home |
Main Index |
Thread Index |
Old Index