aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/dpt/dpt_control.c7
-rw-r--r--sys/dev/dpt/dpt_pci.c4
-rw-r--r--sys/dev/dpt/dpt_scsi.c12
3 files changed, 11 insertions, 12 deletions
diff --git a/sys/dev/dpt/dpt_control.c b/sys/dev/dpt/dpt_control.c
index 2c8581919a13..fe3188d276cd 100644
--- a/sys/dev/dpt/dpt_control.c
+++ b/sys/dev/dpt/dpt_control.c
@@ -36,7 +36,7 @@
* future.
*/
-#ident "$Id: dpt_control.c,v 1.3 1998/02/20 13:11:44 bde Exp $"
+#ident "$Id: dpt_control.c,v 1.4 1998/04/17 22:36:20 des Exp $"
#include "opt_dpt.h"
@@ -853,8 +853,9 @@ dpt_drvinit(void *unused)
dev_t dev;
if (!dpt_devsw_installed) {
- printf("DPT: RAID Manager driver, Version %d.%d.%d\n",
- DPT_CTL_RELEASE, DPT_CTL_VERSION, DPT_CTL_PATCH);
+ if (bootverbose)
+ printf("DPT: RAID Manager driver, Version %d.%d.%d\n",
+ DPT_CTL_RELEASE, DPT_CTL_VERSION, DPT_CTL_PATCH);
/* Add the I/O (data) channel */
dev = makedev(CDEV_MAJOR, 0);
diff --git a/sys/dev/dpt/dpt_pci.c b/sys/dev/dpt/dpt_pci.c
index 3bb2420833dc..11d02d7c9fbd 100644
--- a/sys/dev/dpt/dpt_pci.c
+++ b/sys/dev/dpt/dpt_pci.c
@@ -34,7 +34,7 @@
* caveats: We may need an eisa and an isa files too
*/
-#ident "$Id: dpt_pci.c,v 1.4 1998/02/20 13:11:50 bde Exp $"
+#ident "$Id: dpt_pci.c,v 1.5 1998/03/11 00:30:16 julian Exp $"
#include "opt_devfs.h"
#include "opt_dpt.h"
@@ -110,7 +110,7 @@ dpt_pci_probe(pcici_t tag, pcidi_t type)
#define PCI_SUBCLASS_MASS_STORAGE_SCSI 0x00000000
#endif
- if ( !already_announced ) {
+ if ( bootverbose && !already_announced ) {
printf("DPT: PCI SCSI HBA Driver, version %d.%d.%d\n",
DPT_RELEASE, DPT_VERSION, DPT_PATCH);
++already_announced;
diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c
index 38ce29c9412c..5abf2ad9f010 100644
--- a/sys/dev/dpt/dpt_scsi.c
+++ b/sys/dev/dpt/dpt_scsi.c
@@ -64,7 +64,7 @@
* 3. dpt_handle_timeouts potentially inserts into the queue
*/
-#ident "$Id: dpt_scsi.c,v 1.4 1998/02/25 11:56:37 bde Exp $"
+#ident "$Id: dpt_scsi.c,v 1.5 1998/03/11 00:30:08 julian Exp $"
#define _DPT_C_
#include "opt_dpt.h"
@@ -2105,13 +2105,11 @@ dpt_scsi_cmd(struct scsi_xfer * xs)
/* This will setup the xs flags */
dpt_process_completion(dpt, ccb);
- if (status & HA_SERROR) {
- ospl = splsoftcam();
- dpt_Qpush_free(dpt, ccb);
- splx(ospl);
- return (COMPLETE);
- }
ospl = splsoftcam();
+ if ((status & HA_SERROR) || (ndx == xs->timeout)) {
+ xs->error = XS_DRIVER_STUFFUP;
+ }
+
dpt_Qpush_free(dpt, ccb);
splx(ospl);
return (COMPLETE);