Subject: kern/21131: umass quirk entry for Genesys Logic GL641USB
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mochid@netside.co.jp>
List: netbsd-bugs
Date: 04/14/2003 01:49:58
>Number:         21131
>Category:       kern
>Synopsis:       umass quirk entry for Genesys Logic GL641USB
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 13 09:50:01 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     MOCHIDA Shuji
>Release:        NetBSD 1.6P of 2003 March 8
>Organization:
person
>Environment:
System: NetBSD ebony 1.6K NetBSD 1.6K (BEECH1) #1: Sat Dec 14 22:30:59 JST 2002 mochid@ebony:/NetBSD-current/src/sys/arch/i386/compile/BEECH1 i386


>Description:

 umass quirk entry is needed for Genesys Logic GL641USB, used in USB 
Compact Flash reader TEAC CF-R50. I added entry below into 
sys/dev/usb/umass_quirks.c umass_quirks[], then CF-R50 began to work good.
I took the entry from Shingo WATANABE's message, NetBSD mailing list in 
Japan http://www.unixmagic.org/ml/netbsd/200212/msg00035.html (writtin in
Japanese).

--- sys/dev/usb/umass_quirks.c.ORIG	Mon Feb 24 22:11:55 2003
+++ sys/dev/usb/umass_quirks.c	Sun Apr  6 20:53:52 2003
@@ -345,6 +353,14 @@
 	  PQUIRK_NOMODESENSE,
 	  UMATCH_VENDOR_PRODUCT_REV,
 	  NULL, umass_fixup_yedata
+	},
+
+	{ { USB_VENDOR_GENESYS,USB_PRODUCT_GENESYS_GL641USB },
+	  UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
+	  UMASS_QUIRK_FORCE_SHORT_INQUIRY | UMASS_QUIRK_NO_START_STOP,
+	  PQUIRK_NOMODESENSE,
+	  UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
+	  NULL, NULL
 	},
 };
 

>How-To-Repeat:

**BEFORE**
umass0 at uhub0 port 2 configuration 1 interface 0

umass0: Genesys Logic USB Storage Device, rev 1.10/1.13, addr 3
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
scsibus0: waiting 2 seconds for devices to settle...
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
  :

**AFTER**
umass0 at uhub0 port 2 configuration 1 interface 0
umass0: Genesys Logic USB Storage Device, rev 1.10/1.13, addr 3
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <Generic, STORAGE DEVICE, 0.01> disk removable
sd0: 122 MB, 122 cyl, 64 head, 32 sec, 512 bytes/sect x 250881 sectors
  :

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: