Author: hselasky
Date: Thu Nov 17 10:46:51 2011
New Revision: 227610
URL: http://svn.freebsd.org/changeset/base/227610

Log:
  Quirk all of ALCOR's mass storage devices instead of
  quirking individual devices.
  
  Submitted by: Dmitry Luhtionov
  MFC after:    1 week

Modified:
  head/sys/dev/usb/quirk/usb_quirk.c
  head/sys/dev/usb/usbdevs

Modified: head/sys/dev/usb/quirk/usb_quirk.c
==============================================================================
--- head/sys/dev/usb/quirk/usb_quirk.c  Thu Nov 17 08:57:39 2011        
(r227609)
+++ head/sys/dev/usb/quirk/usb_quirk.c  Thu Nov 17 10:46:51 2011        
(r227610)
@@ -148,10 +148,6 @@ static struct usb_quirk_entry usb_quirks
            UQ_MSC_FORCE_PROTO_SCSI),
        USB_QUIRK(AIPTEK, POCKETCAM3M, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB,
            UQ_MSC_FORCE_PROTO_SCSI),
-       USB_QUIRK(ALCOR, SDCR_6335, 0x0000, 0xffff, UQ_MSC_NO_TEST_UNIT_READY,
-           UQ_MSC_NO_SYNC_CACHE),
-       USB_QUIRK(ALCOR, SDCR_6362, 0x0000, 0xffff, UQ_MSC_NO_TEST_UNIT_READY,
-           UQ_MSC_NO_SYNC_CACHE),
        USB_QUIRK(ALCOR, UMCR_9361, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB,
            UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN),
        USB_QUIRK(ALCOR, TRANSCEND, 0x0000, 0xffff, UQ_MSC_NO_GETMAXLUN,
@@ -462,6 +458,7 @@ static struct usb_quirk_entry usb_quirks
         * Quirks for manufacturers which USB devices does not respond
         * after issuing non-supported commands:
         */
+       USB_QUIRK(ALCOR, DUMMY, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE, 
UQ_MSC_NO_TEST_UNIT_READY, UQ_MATCH_VENDOR_ONLY),
        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),
        USB_QUIRK(INITIO, DUMMY, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE, 
UQ_MATCH_VENDOR_ONLY),

Modified: head/sys/dev/usb/usbdevs
==============================================================================
--- head/sys/dev/usb/usbdevs    Thu Nov 17 08:57:39 2011        (r227609)
+++ head/sys/dev/usb/usbdevs    Thu Nov 17 10:46:51 2011        (r227610)
@@ -915,8 +915,10 @@ product ALCATEL OT535              0x02df  One Touch 
 /* Alcor Micro, Inc. products */
 product ALCOR2 KBD_HUB         0x2802  Kbd Hub
 
+product ALCOR DUMMY            0x0000  Dummy product
 product ALCOR SDCR_6335                0x6335  SD/MMC Card Reader
 product ALCOR SDCR_6362                0x6362  SD/MMC Card Reader
+product ALCOR SDCR_6366                0x6366  SD/MMC Card Reader
 product ALCOR TRANSCEND                0x6387  Transcend JetFlash Drive
 product ALCOR MA_KBD_HUB       0x9213  MacAlly Kbd Hub
 product ALCOR AU9814           0x9215  AU9814 Hub
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to