Subject: kern/22167: Quirk for a USB 6-in-1 card reader
To: None <gnats-bugs@gnats.netbsd.org>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-bugs
Date: 07/17/2003 20:17:33
>Number: 22167
>Category: kern
>Synopsis: Quirk for a USB 6-in-1 card reader
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Jul 17 18:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Quentin Garnier
>Release: NetBSD 1.6U
>Organization:
Quentin Garnier - cube@cubidou.net
"Feels like I'm fiddling while Rome is burning down.
Should I lay my fiddle down and take a rifle from the ground ?"
Leigh Nash/Sixpence None The Richer, Paralyzed, Divine Discontents, 2002.
>Environment:
System: NetBSD padme 1.6U NetBSD 1.6U (PADME) #3: Thu Jul 17 19:55:12 CEST 2003 cube@padme:/mnt/src/current/src/sys/arch/i386/compile/NVIDIA i386
Architecture: i386
Machine: i386
>Description:
I just bought a 6-in-1 card reader. It works out of the box,
but I get a complain about mode sense failing when mounting
a card, so I added a quirk.
The device identifies itself as a gereric USBMass storage
device, but vendor ID is ST and, well, 'Pocket' is written
on the thing. Indeed it's small.
>How-To-Repeat:
>Fix:
Index: umass_quirks.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/umass_quirks.c,v
retrieving revision 1.44
diff -u -r1.44 umass_quirks.c
--- umass_quirks.c 2003/07/14 15:47:29 1.44
+++ umass_quirks.c 2003/07/17 18:17:02
@@ -429,6 +429,14 @@
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
+
+ { { USB_VENDOR_STMICRO, USB_PRODUCT_STMICRO_POCKET },
+ UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
+ 0,
+ PQUIRK_NOMODESENSE,
+ UMATCH_VENDOR_PRODUCT,
+ NULL, NULL
+ },
};
const struct umass_quirk *
Index: usbdevs
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.332
diff -u -r1.332 usbdevs
--- usbdevs 2003/06/30 12:41:38 1.332
+++ usbdevs 2003/07/17 18:17:03
@@ -1344,6 +1344,7 @@
/* STMicroelectronics products */
product STMICRO COMMUNICATOR 0x7554 USB Communicator
+product STMICRO POCKET 0x1307 Pocket 6-in-1 Card Reader
/* STSN products */
product STSN STSN0001 0x0001 Internet Access Device
Index: usbdevs.h
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.337
diff -u -r1.337 usbdevs.h
--- usbdevs.h 2003/06/30 12:42:27 1.337
+++ usbdevs.h 2003/07/17 18:17:05
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdevs.h,v 1.337 2003/06/30 12:42:27 martin Exp $ */
+/* $NetBSD$ */
/*
* THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
@@ -1351,6 +1351,7 @@
/* STMicroelectronics products */
#define USB_PRODUCT_STMICRO_COMMUNICATOR 0x7554 /* USB Communicator */
+#define USB_PRODUCT_STMICRO_POCKET 0x1307 /* Pocket 6-in-1 Card Reader */
/* STSN products */
#define USB_PRODUCT_STSN_STSN0001 0x0001 /* Internet Access Device */
Index: usbdevs_data.h
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.338
diff -u -r1.338 usbdevs_data.h
--- usbdevs_data.h 2003/06/30 12:42:27 1.338
+++ usbdevs_data.h 2003/07/17 18:17:06
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdevs_data.h,v 1.338 2003/06/30 12:42:27 martin Exp $ */
+/* $NetBSD$ */
/*
* THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
@@ -3686,6 +3686,12 @@
0,
"STMicroelectronics",
"USB Communicator",
+ },
+ {
+ USB_VENDOR_STMICRO, USB_PRODUCT_STMICRO_POCKET,
+ 0,
+ "STMicroelectronics",
+ "Pocket 6-in-1 Card Reader",
},
{
USB_VENDOR_STSN, USB_PRODUCT_STSN_STSN0001,
>Release-Note:
>Audit-Trail:
>Unformatted: