From c4b01cd5b9d4d723d64afa53a997e49199b1abb4 Mon Sep 17 00:00:00 2001 From: hselasky Date: Tue, 27 Sep 2011 07:06:02 +0000 Subject: 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 --- sys/dev/usb/quirk/usb_quirk.c | 7 +++++++ sys/dev/usb/usbdevs | 2 ++ 2 files changed, 9 insertions(+) (limited to 'sys/dev/usb') 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 -- cgit v1.1