summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2011-09-27 07:06:02 +0000
committerhselasky <hselasky@FreeBSD.org>2011-09-27 07:06:02 +0000
commitc4b01cd5b9d4d723d64afa53a997e49199b1abb4 (patch)
tree8525db806ac31be894fb8c423f11f6b78bb54197
parentc76aaf56c6c68a8d4e83caf28fefa134ffc06aa8 (diff)
downloadFreeBSD-src-c4b01cd5b9d4d723d64afa53a997e49199b1abb4.zip
FreeBSD-src-c4b01cd5b9d4d723d64afa53a997e49199b1abb4.tar.gz
Add quirks for some USB mass storage devices which doesn't respond
after trying to query the synchronize cache support. Submitted by: Keith White PR: usb/160911 Approved by: re (kensmith) MFC after: 1 week
-rw-r--r--sys/dev/usb/quirk/usb_quirk.c7
-rw-r--r--sys/dev/usb/usbdevs2
2 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/usb/quirk/usb_quirk.c b/sys/dev/usb/quirk/usb_quirk.c
index d3093f7..81a3e41 100644
--- a/sys/dev/usb/quirk/usb_quirk.c
+++ b/sys/dev/usb/quirk/usb_quirk.c
@@ -457,6 +457,13 @@ static struct usb_quirk_entry usb_quirks[USB_DEV_QUIRKS_MAX] = {
USB_QUIRK(ROLAND, SD80, 0x0000, 0xffff, UQ_AU_VENDOR_CLASS),
USB_QUIRK(ROLAND, UA700, 0x0000, 0xffff, UQ_AU_VENDOR_CLASS),
USB_QUIRK(MEDELI, DD305, 0x0000, 0xffff, UQ_SINGLE_CMD_MIDI, UQ_MATCH_VENDOR_ONLY),
+
+ /*
+ * Quirks for manufacturers which USB devices does not respond
+ * after issuing non-supported commands:
+ */
+ USB_QUIRK(FEIYA, DUMMY, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE, UQ_MATCH_VENDOR_ONLY),
+ USB_QUIRK(REALTEK, DUMMY, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE, UQ_MATCH_VENDOR_ONLY),
};
#undef USB_QUIRK_VP
#undef USB_QUIRK
diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs
index 6a729a2..d945a18 100644
--- a/sys/dev/usb/usbdevs
+++ b/sys/dev/usb/usbdevs
@@ -1569,6 +1569,7 @@ product EXTENDED XTNDACCESS 0x0100 XTNDAccess IrDA
product FALCOM TWIST 0x0001 USB GSM/GPRS Modem
/* FEIYA products */
+product FEIYA DUMMY 0x0000 Dummy product
product FEIYA 5IN1 0x1132 5-in-1 Card Reader
product FEIYA AC110 0x6300 AC-110 Card Reader
@@ -2780,6 +2781,7 @@ product RATOC REXUSB60F 0xb020 USB serial adapter REX-USB60F
/* ReakTek products */
/* Green House and CompUSA OEM this part */
+product REALTEK DUMMY 0x0000 Dummy product
product REALTEK USB20CRW 0x0158 USB20CRW Card Reader
product REALTEK USBKR100 0x8150 USBKR100 USB Ethernet
product REALTEK RTL8187 0x8187 RTL8187 Wireless Adapter
OpenPOWER on IntegriCloud