svn commit: r189905 - head/sys/dev/usb/storage
Andrew Thompson
thompsa at FreeBSD.org
Mon Mar 16 18:42:49 PDT 2009
Author: thompsa
Date: Tue Mar 17 01:42:46 2009
New Revision: 189905
URL: http://svn.freebsd.org/changeset/base/189905
Log:
MFp4 //depot/projects/usb 159238,159275
Add umass quirks.
Submitted by: Michael Gmelin
Modified:
head/sys/dev/usb/storage/umass.c
Modified: head/sys/dev/usb/storage/umass.c
==============================================================================
--- head/sys/dev/usb/storage/umass.c Tue Mar 17 01:38:51 2009 (r189904)
+++ head/sys/dev/usb/storage/umass.c Tue Mar 17 01:42:46 2009 (r189905)
@@ -609,7 +609,7 @@ static const struct umass_devdescr umass
},
{USB_VENDOR_MYSON, USB_PRODUCT_MYSON_HEDEN, RID_WILDCARD,
UMASS_PROTO_SCSI | UMASS_PROTO_BBB,
- NO_INQUIRY | IGNORE_RESIDUE
+ NO_INQUIRY | IGNORE_RESIDUE | NO_SYNCHRONIZE_CACHE
},
{USB_VENDOR_MYSON, USB_PRODUCT_MYSON_STARREADER, RID_WILDCARD,
UMASS_PROTO_SCSI | UMASS_PROTO_BBB,
@@ -847,6 +847,10 @@ static const struct umass_devdescr umass
UMASS_PROTO_SCSI | UMASS_PROTO_BBB,
NO_QUIRKS
},
+ {USB_VENDOR_SUPERTOP, USB_PRODUCT_SUPERTOP_IDE, RID_WILDCARD,
+ UMASS_PROTO_SCSI | UMASS_PROTO_BBB,
+ IGNORE_RESIDUE | NO_SYNCHRONIZE_CACHE
+ },
{USB_VENDOR_TAUGA, USB_PRODUCT_TAUGA_CAMERAMATE, RID_WILDCARD,
UMASS_PROTO_SCSI,
NO_QUIRKS
@@ -2022,7 +2026,7 @@ umass_t_bbb_status_callback(struct usb2_
residue = UGETDW(sc->csw.dCSWDataResidue);
- if (!residue) {
+ if ((!residue) || (sc->sc_quirks & IGNORE_RESIDUE)) {
residue = (sc->sc_transfer.data_len -
sc->sc_transfer.actlen);
}
More information about the svn-src-all
mailing list