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 quirk for Meizu M6, which doesn't like synch...



details:   https://anonhg.NetBSD.org/src/rev/2b2b62b4295a
branches:  trunk
changeset: 748084:2b2b62b4295a
user:      wiz <wiz%NetBSD.org@localhost>
date:      Mon Oct 12 23:43:05 2009 +0000

description:
Add quirk for Meizu M6, which doesn't like synchronize cache;
addresses PR 40442.

Idea for quirk from FreeBSD/hps.

diffstat:

 sys/dev/usb/umass_quirks.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r c24eaf4d16a2 -r 2b2b62b4295a sys/dev/usb/umass_quirks.c
--- a/sys/dev/usb/umass_quirks.c        Mon Oct 12 23:41:51 2009 +0000
+++ b/sys/dev/usb/umass_quirks.c        Mon Oct 12 23:43:05 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: umass_quirks.c,v 1.76 2008/10/27 21:46:43 joerg Exp $  */
+/*     $NetBSD: umass_quirks.c,v 1.77 2009/10/12 23:43:05 wiz 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.76 2008/10/27 21:46:43 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umass_quirks.c,v 1.77 2009/10/12 23:43:05 wiz Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -221,6 +221,14 @@
          UMATCH_VENDOR_PRODUCT,
          NULL, NULL
        },
+       /* Meizu M6 doesn't like synchronize-cache, see PR 40442 */
+       { { USB_VENDOR_MEIZU, USB_PRODUCT_MEIZU_M6_SL },
+         UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC, 
+         0,
+         PQUIRK_NOSYNCCACHE,
+         UMATCH_VENDOR_PRODUCT,
+         NULL, NULL
+       },
 };
 
 const struct umass_quirk *



Home | Main Index | Thread Index | Old Index