Module Name: src
Committed By: asau
Date: Sat Sep 3 01:56:44 UTC 2011
Modified Files:
src/sys/dev/usb: umass_quirks.c
Log Message:
Add quirks for Kingston DT 101 to stop them giving HBA errors.
To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 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.87 src/sys/dev/usb/umass_quirks.c:1.88
--- src/sys/dev/usb/umass_quirks.c:1.87 Wed Aug 24 11:28:50 2011
+++ src/sys/dev/usb/umass_quirks.c Sat Sep 3 01:56:44 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: umass_quirks.c,v 1.87 2011/08/24 11:28:50 mbalmer Exp $ */
+/* $NetBSD: umass_quirks.c,v 1.88 2011/09/03 01:56:44 asau 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.87 2011/08/24 11:28:50 mbalmer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umass_quirks.c,v 1.88 2011/09/03 01:56:44 asau Exp $");
#ifdef _KERNEL_OPT
#include "opt_umass.h"
@@ -274,6 +274,22 @@
},
/* Kingston USB pendrives don't like being told to lock the door */
+ { { USB_VENDOR_KINGSTON, USB_PRODUCT_KINGSTON_DT101_II },
+ UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
+ 0,
+ PQUIRK_NODOORLOCK,
+ UMATCH_VENDOR_PRODUCT,
+ NULL, NULL
+ },
+
+ { { USB_VENDOR_KINGSTON, USB_PRODUCT_KINGSTON_DT101_G2 },
+ UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
+ 0,
+ PQUIRK_NODOORLOCK,
+ UMATCH_VENDOR_PRODUCT,
+ NULL, NULL
+ },
+
{ { USB_VENDOR_KINGSTON, USB_PRODUCT_KINGSTON_DTMINI10 },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,