Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb PQUIRK_NOSENSE is dead here. Remove the code su...



details:   https://anonhg.NetBSD.org/src/rev/1e57522028a5
branches:  trunk
changeset: 553452:1e57522028a5
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Fri Oct 17 00:20:28 2003 +0000

description:
PQUIRK_NOSENSE is dead here.  Remove the code supporting it.

diffstat:

 sys/dev/usb/umass_scsipi.c |  29 ++---------------------------
 1 files changed, 2 insertions(+), 27 deletions(-)

diffs (50 lines):

diff -r d4a351167f0e -r 1e57522028a5 sys/dev/usb/umass_scsipi.c
--- a/sys/dev/usb/umass_scsipi.c        Fri Oct 17 00:19:46 2003 +0000
+++ b/sys/dev/usb/umass_scsipi.c        Fri Oct 17 00:20:28 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: umass_scsipi.c,v 1.18 2003/10/16 23:39:40 mycroft Exp $        */
+/*     $NetBSD: umass_scsipi.c,v 1.19 2003/10/17 00:20:28 mycroft Exp $        */
 
 /*
  * Copyright (c) 2001, 2003 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umass_scsipi.c,v 1.18 2003/10/16 23:39:40 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umass_scsipi.c,v 1.19 2003/10/17 00:20:28 mycroft Exp $");
 
 #include "atapibus.h"
 #include "scsibus.h"
@@ -439,31 +439,6 @@
                break;
 
        case STATUS_CMD_UNKNOWN:
-               /* we can't issue REQUEST SENSE */
-               if (xs->xs_periph->periph_quirks & PQUIRK_NOSENSE) {
-                       /*
-                        * If no residue and no other USB error,
-                        * command succeeded.
-                        */
-                       if (residue == 0) {
-                               xs->error = XS_NOERROR;
-                               break;
-                       }
-
-                       /*
-                        * Some devices return a short INQUIRY
-                        * response, omitting response data from the
-                        * "vendor specific data" on...
-                        */
-                       if (xs->cmd->opcode == INQUIRY &&
-                           residue < xs->datalen) {
-                               xs->error = XS_NOERROR;
-                               break;
-                       }
-
-                       xs->error = XS_DRIVER_STUFFUP;
-                       break;
-               }
                /* FALLTHROUGH */
        case STATUS_CMD_FAILED:
                /* fetch sense data */



Home | Main Index | Thread Index | Old Index