Module Name: src
Committed By: riz
Date: Sat Mar 3 21:35:33 UTC 2012
Modified Files:
src/sys/dev/usb: umass_quirks.c
Log Message:
Add quirk for Kingston DataTraveler 100 G2 (which apparently has
a Toshiba vendor ID)
To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/sys/dev/usb/umass_quirks.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/umass_quirks.c
diff -u src/sys/dev/usb/umass_quirks.c:1.92 src/sys/dev/usb/umass_quirks.c:1.93
--- src/sys/dev/usb/umass_quirks.c:1.92 Fri Dec 23 00:51:47 2011
+++ src/sys/dev/usb/umass_quirks.c Sat Mar 3 21:35:32 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: umass_quirks.c,v 1.92 2011/12/23 00:51:47 jakllsch Exp $ */
+/* $NetBSD: umass_quirks.c,v 1.93 2012/03/03 21:35:32 riz 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.92 2011/12/23 00:51:47 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umass_quirks.c,v 1.93 2012/03/03 21:35:32 riz Exp $");
#ifdef _KERNEL_OPT
#include "opt_umass.h"
@@ -319,6 +319,15 @@ Static const struct umass_quirk umass_qu
NULL, NULL
},
+ /* Also, some Kingston pendrives have Toshiba vendor ID */
+ { { USB_VENDOR_TOSHIBA, USB_PRODUCT_KINGSTON_DT100_G2 },
+ UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
+ 0,
+ PQUIRK_NODOORLOCK,
+ UMATCH_VENDOR_PRODUCT,
+ NULL, NULL
+ },
+
/* HP USB pendrives don't like being told to lock the door */
{ { USB_VENDOR_HP, USB_PRODUCT_HP_V125W },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,