From nobody@FreeBSD.org  Tue Dec 14 15:26:59 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C3C3616A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 14 Dec 2004 15:26:59 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9515E43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 14 Dec 2004 15:26:59 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iBEFQxak017409
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 14 Dec 2004 15:26:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iBEFQxi1017408;
	Tue, 14 Dec 2004 15:26:59 GMT
	(envelope-from nobody)
Message-Id: <200412141526.iBEFQxi1017408@www.freebsd.org>
Date: Tue, 14 Dec 2004 15:26:59 GMT
From: Aurelien Nephtali <aurelien.nephtali@wanadoo.fr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [QUIRK] Add support for ZICPlay USB MP3 Player
X-Send-Pr-Version: www-2.3

>Number:         75057
>Category:       kern
>Synopsis:       [patch] [QUIRK] Add support for ZICPlay USB MP3 Player
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 14 15:30:24 GMT 2004
>Closed-Date:    Thu Apr 14 04:31:52 GMT 2005
>Last-Modified:  Thu Apr 14 04:31:52 GMT 2005
>Originator:     Aurelien Nephtali
>Release:        6.0-CURRENT
>Organization:
Legitravail
>Environment:
FreeBSD cri 6.0-CURRENT FreeBSD 6.0-CURRENT #23: Tue Dec 14 16:11:50 CET 2004     dak@cri:/usr/src/sys/i386/compile/CRI  i386
>Description:
cri# camcontrol inquiry da0
pass2: <ACTIONS USB DISK DEVICE 1.00> Removable Direct Access SCSI-2 device 
pass2: Serial Number 
pass2: 1.000MB/s transfers

Product : It's a ZICPlay USB MP3 Player with FM (seems to have a 'ACTIONS' firmware)

Before the quirk, when the key is plugged (no /dev/da* at this time) :

umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
(da0:umass-sim0:0:0:0): Synchronize cache failed, st
atus == 0x4, scsi status == 0x0
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT

dmesg output :

umass0: vendor 0x10d6 Actions USB Disk Device, rev 1.10/1.00, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <ACTIONS USB DISK DEVICE 1.00> Removable Direct Access SCSI-2 device 
da0: 1.000MB/s transfers
da0: 249MB (510494 512 byte sectors: 64H 32S/T 249C)

usbdevs -v output (with my patch, since without, it hangs) :

Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00
 port 1 powered
 port 2 addr 2: full speed, power 100 mA, config 1, Actions USB Disk Device(0x1000), vendor(0x10d6), rev 1.00
Controller /dev/usb4:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), VIA(0x0000), rev 1.00

With my patch, /dev/da0 and /dev/da0s1 are created and I can mount /dev/da0s1 correctly.
>How-To-Repeat:
Just buy the same player and plug it.
>Fix:
--- /sys/cam/scsi/scsi_da.c     Sun Aug 29 13:10:09 2004
+++ scsi_da.c   Tue Dec 14 15:45:46 2004
@@ -314,6 +314,11 @@
                {T_DIRECT, SIP_MEDIA_REMOVABLE, "FL" , "NexIA+*", "*"},
                /*quirks*/ DA_Q_NO_SYNC_CACHE
        },
+       /* XXX */
+       {
+               {T_DIRECT, SIP_MEDIA_REMOVABLE, "ACTIONS*" , "USB DISK*", "*"},
+               /*quirks*/ DA_Q_NO_SYNC_CACHE
+       },
 };
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Apr 12 00:46:41 GMT 2005 
Responsible-Changed-Why:  
Applies to the general kernel, not the i386-specific parts. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75057 
State-Changed-From-To: open->closed 
State-Changed-By: njl 
State-Changed-When: Thu Apr 14 04:29:56 GMT 2005 
State-Changed-Why:  
Committed, thank you 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75057 
>Unformatted:
