summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorbouyer <bouyer@NetBSD.org>2002-05-02 12:36:23 +0000
committerbouyer <bouyer@NetBSD.org>2002-05-02 12:36:23 +0000
commit1d5fb5d90e7ef92344dcfadfdf798281f13b5ef7 (patch)
treec00266d00d92cc62f04bfe3344102563a7a2ebb2 /sys/dev
parentd105d4c05630fd42428fbd28403109a97449b971 (diff)
If we get a Unit Attention Not Ready To Ready Transition (medium may have
changed) sense, and the periph was not open, then ignore the error.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/scsipi/st.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/scsipi/st.c b/sys/dev/scsipi/st.c
index 3bcaa9dacc0..ddf512e3f45 100644
--- a/sys/dev/scsipi/st.c
+++ b/sys/dev/scsipi/st.c
@@ -1,4 +1,4 @@
-/* $NetBSD: st.c,v 1.152 2002/03/22 21:39:36 mjacob Exp $ */
+/* $NetBSD: st.c,v 1.153 2002/05/02 12:36:23 bouyer Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: st.c,v 1.152 2002/03/22 21:39:36 mjacob Exp $");
+__KERNEL_RCSID(0, "$NetBSD: st.c,v 1.153 2002/05/02 12:36:23 bouyer Exp $");
#include "opt_scsi.h"
@@ -2099,9 +2099,14 @@ st_interpret_sense(xs)
}
/*
- * If the device is not open yet, let generic handle
+ * If the device is not open yet, a Not Ready To Ready Transition
+ * is acceptable. Let generic code handle other ASC/ASQ.
*/
if ((periph->periph_flags & PERIPH_OPEN) == 0) {
+ if (key == SKEY_UNIT_ATTENTION &&
+ st->asc == 0x28 && st->ascq == 0x0) {
+ return (0);
+ }
return (retval);
}