Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Add umass quirk for Alcor AU6366 multi-card reader.



details:   https://anonhg.NetBSD.org/src/rev/3413b646b444
branches:  trunk
changeset: 1011121:3413b646b444
user:      flxd <flxd%NetBSD.org@localhost>
date:      Fri Jun 19 11:52:42 2020 +0000

description:
Add umass quirk for Alcor AU6366 multi-card reader.

diffstat:

 sys/dev/usb/umass_quirks.c |  17 +++++++++++++++--
 sys/dev/usb/usbdevs        |   3 ++-
 2 files changed, 17 insertions(+), 3 deletions(-)

diffs (55 lines):

diff -r 8154c298805a -r 3413b646b444 sys/dev/usb/umass_quirks.c
--- a/sys/dev/usb/umass_quirks.c        Fri Jun 19 10:35:11 2020 +0000
+++ b/sys/dev/usb/umass_quirks.c        Fri Jun 19 11:52:42 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: umass_quirks.c,v 1.101 2020/04/13 09:26:43 jdolecek Exp $      */
+/*     $NetBSD: umass_quirks.c,v 1.102 2020/06/19 11:52:42 flxd Exp $  */
 
 /*
  * Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umass_quirks.c,v 1.101 2020/04/13 09:26:43 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umass_quirks.c,v 1.102 2020/06/19 11:52:42 flxd Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -330,6 +330,19 @@
          UMATCH_VENDOR_PRODUCT,
          NULL, NULL
        },
+
+       /*
+        * Fix Alcor multi-card readers in many HP machines (like net-tops).
+        * FreeBSD applies the no-sync-cache quirk for /all/ Alcor usb devices
+        * as well as a no-test-unit-ready quirk. Mine works without the latter.
+        */
+       { { USB_VENDOR_ALCOR, USB_PRODUCT_ALCOR_AU6366 },
+         UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
+         0,
+         PQUIRK_NOSYNCCACHE,
+         UMATCH_VENDOR_PRODUCT,
+         NULL, NULL
+       },
 };
 
 const struct umass_quirk *
diff -r 8154c298805a -r 3413b646b444 sys/dev/usb/usbdevs
--- a/sys/dev/usb/usbdevs       Fri Jun 19 10:35:11 2020 +0000
+++ b/sys/dev/usb/usbdevs       Fri Jun 19 11:52:42 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: usbdevs,v 1.782 2020/04/29 08:05:10 nia Exp $
+$NetBSD: usbdevs,v 1.783 2020/06/19 11:52:42 flxd Exp $
 
 /*-
  * Copyright (c) 1998-2004 The NetBSD Foundation, Inc.
@@ -803,6 +803,7 @@
 /* Alcor Micro, Inc. products */
 product ALCOR2 KBD_HUB         0x2802  Kbd Hub
 
+product ALCOR AU6366           0x6366  AU6366 USB2.0 Single LUN Multiple Flash Card Reader Controller
 product ALCOR MA_KBD_HUB       0x9213  MacAlly Kbd Hub
 product ALCOR AU9814           0x9215  AU9814 Hub
 product ALCOR SM_KBD           0x9410  MicroConnectors/StrongMan Keyboard



Home | Main Index | Thread Index | Old Index