summaryrefslogtreecommitdiff
path: root/sys/scsi/ch.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1998-03-22 20:20:00 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1998-03-22 20:20:00 +0000
commitb16a546badf5521dfae7e647264af784b5afc2d2 (patch)
treec90112c3294c66b08f19560a6bba7caa0ebcb79f /sys/scsi/ch.c
parent75fdcaa5b9eb2cfdabc90db3023c44f0264bd95b (diff)
Tell the SCSI driver that we expect data in from the changer device when we
request status; makes it work properly on NCR controllers (and probably on some others as well).
Diffstat (limited to 'sys/scsi/ch.c')
-rw-r--r--sys/scsi/ch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c
index c7fdea0549e..c9208ca2f36 100644
--- a/sys/scsi/ch.c
+++ b/sys/scsi/ch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ch.c,v 1.7 1997/04/14 04:09:05 downsj Exp $ */
+/* $OpenBSD: ch.c,v 1.8 1998/03/22 20:19:59 tholo Exp $ */
/* $NetBSD: ch.c,v 1.26 1997/02/21 22:06:52 thorpej Exp $ */
/*
@@ -601,7 +601,7 @@ ch_getelemstatus(sc, first, count, data, datalen)
* Send command to changer.
*/
return (scsi_scsi_cmd(sc->sc_link, (struct scsi_generic *)&cmd,
- sizeof(cmd), (u_char *)data, datalen, CHRETRIES, 100000, NULL, 0));
+ sizeof(cmd), (u_char *)data, datalen, CHRETRIES, 100000, NULL, SCSI_DATA_IN));
}