From timon@memphis.mephi.ru  Thu Dec 26 05:50:12 2002
Return-Path: <timon@memphis.mephi.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A0CE137B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 26 Dec 2002 05:50:12 -0800 (PST)
Received: from memphis.mephi.ru (memphis.mephi.ru [194.67.67.234])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1191843F1C
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 26 Dec 2002 05:50:10 -0800 (PST)
	(envelope-from timon@memphis.mephi.ru)
Received: from memphis.mephi.ru (timon@localhost [127.0.0.1])
	by memphis.mephi.ru (8.12.6/8.12.6) with ESMTP id gBQDL9Uc073200
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 26 Dec 2002 16:21:09 +0300 (MSK)
	(envelope-from timon@memphis.mephi.ru)
Received: (from timon@localhost)
	by memphis.mephi.ru (8.12.6/8.12.6/Submit) id gBQDL8TU073199;
	Thu, 26 Dec 2002 16:21:08 +0300 (MSK)
Message-Id: <200212261321.gBQDL8TU073199@memphis.mephi.ru>
Date: Thu, 26 Dec 2002 16:21:08 +0300 (MSK)
From: "Artem 'Zazoobr' Ignatjev" <timon@memphis.mephi.ru>
Reply-To: "Artem 'Zazoobr' Ignatjev" <timon@memphis.mephi.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [QUIRK] Casio Digital camera
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46545
>Category:       kern
>Synopsis:       [QUIRK] Casio Digital camera
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    njl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 26 06:00:23 PST 2002
>Closed-Date:    Sun Apr 27 13:33:28 PDT 2003
>Last-Modified:  Tue Apr 29 13:50:10 PDT 2003
>Originator:     Artem 'Zazoobr' Ignatjev
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
Moscow Liceum 1511
>Environment:
System: FreeBSD memphis.mephi.ru 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Mon Nov 25 19:54:34 MSK 2002 timon@timon.memphis.mephi.ru:/usr/src/sys/compile/MEMPHIS i386


	
>Description:
	Casio QV-R3 (and, probably, other Casio cameras) don't support 6-byte CAM commands and SYNC_CACHE
	
>How-To-Repeat:
	Plug Casio QV-R3 into USB port, switch it on. Kernel will tell you that it 
	doesn't support 6-byte commands and can't sync cache.
	
>Fix:
	
--- sys/cam/scsi/scsi_da.c	Wed Dec 25 16:34:53 2002
+++ sys/cam/scsi/scsi_da.c	Wed Dec 25 16:38:20 2002
@@ -373,6 +373,13 @@
 		 */
 		{T_DIRECT, SIP_MEDIA_REMOVABLE, "Digital", "World   DMC","*"},
 		/*quirks*/ DA_Q_NO_6_BYTE
+	},
+	{
+		/*
+		 * Casio Digital USB Camera
+		 */
+		{T_DIRECT, SIP_MEDIA_REMOVABLE, "CASIO", "DIGITAL_CAMERA", "*"},
+		/*quirks*/ DA_Q_NO_6_BYTE | DA_Q_NO_SYNC_CACHE
 	}
 };
 
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->njl 
Responsible-Changed-By: johan 
Responsible-Changed-When: Mon Feb 3 13:10:18 PST 2003 
Responsible-Changed-Why:  
Over to quirks maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46545 
State-Changed-From-To: open->feedback 
State-Changed-By: njl 
State-Changed-When: Wed Feb 5 13:18:23 PST 2003 
State-Changed-Why:  

Please report the information requested at: 
http://www.root.org/~nate/freebsd/quirks.html 
Also include the output of usbdevs -v with the camera attached. 
Is the manufacturer Asahi Optical?  (I will see this from the usbdevs 
output).  It appears there is a Pentax-branded camera that is similar 
(PR kern/46369). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46545 

From: "Artem 'Zazoobr' Ignatjev" <timon@memphis.mephi.ru>
To: Nate Lawson <njl@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/46545: [QUIRK] Casio Digital camera
Date: 08 Feb 2003 10:20:09 +0300

 On Wed, 06.02.2003, =D7 00:20, Nate Lawson wrote:
 > Synopsis: [QUIRK] Casio Digital camera
 >=20
 > State-Changed-From-To: open->feedback
 > State-Changed-By: njl
 > State-Changed-When: Wed Feb 5 13:18:23 PST 2003
 > State-Changed-Why:=20
 >=20
 > Please report the information requested at:
 >   http://www.root.org/~nate/freebsd/quirks.html
 > Also include the output of usbdevs -v with the camera attached.
 > Is the manufacturer Asahi Optical?  (I will see this from the usbdevs
 > output).  It appears there is a Pentax-branded camera that is similar
 > (PR kern/46369).
 Yes, it uses Pentax optics.
 I have no other box with freebsd-4,so I can't attach failure messages
 now...
 These are messages of successful attachment:
 umass0: CASIO COMPUTER CASIO QV DIGITAL, rev 1.00/10.00, addr 3
 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: <CASIO DIGITAL_CAMERA 1.00> Removable Direct Access SCSI-0 device=20
 da0: 150KB/s transfers
 da0: 122MB (250880 512 byte sectors: 0H 0S/T 0C)
 
 [root@timon timon]# camcontrol inquiry da0
 pass0: <CASIO DIGITAL_CAMERA 1.00> Removable Direct Access SCSI-0 device
 pass0: 150KB/s transfers=20
 [root@timon timon]# usbdevs -v
 Controller /dev/usb0:
 addr 1: self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev
 1.00
  port 1 addr 2: low speed, power 98 mA, config 1, USB-PS/2 Optical
 Mouse(0xc00e), Logitech(0x046d), rev 11.10
  port 2 addr 3: self powered, config 1, CASIO QV DIGITAL(0x1001), CASIO
 COMPUTER(0x07cf), rev 10.00
 
 
 
State-Changed-From-To: feedback->closed 
State-Changed-By: njl 
State-Changed-When: Sun Apr 27 13:32:23 PDT 2003 
State-Changed-Why:  

I am committing a quirk for this now that should fix things.  It will be MFCd 
in 1 week.  Sorry for the delay and thanks for submitting the info. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46545 

From: Nate Lawson <nate@root.org>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/46545: [QUIRK] Casio Digital camera (fwd)
Date: Tue, 29 Apr 2003 13:45:44 -0700 (PDT)

 User emailed me directly.
 
 ---------- Forwarded message ----------
 Date: 17 Apr 2003 13:08:02 +0400
 From: Artem 'Zazoobr' Ignatjev <timon@memphis.mephi.ru>
 
 After upgrading to 4.8-REL i can get failure messages:
 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: <CASIO DIGITAL_CAMERA 1.00> Removable Direct Access SCSI-0 device 
 da0: 150KB/s transfers
 da0: 122MB (250880 512 byte sectors: 64H 32S/T 122C)
 umass0: Unsupported ATAPI command 0x08, 6 byte command should have been
 converted
 da0: reading primary partition table: error reading fsbn 0
 umass0: Unsupported ATAPI command 0x35
 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x6, scsi
 status == 0x0
 
 > These are messages of successful attachment:
 > umass0: CASIO COMPUTER CASIO QV DIGITAL, rev 1.00/10.00, addr 3
 > da0 at umass-sim0 bus 0 target 0 lun 0
 > da0: <CASIO DIGITAL_CAMERA 1.00> Removable Direct Access SCSI-0 device 
 > da0: 150KB/s transfers
 > da0: 122MB (250880 512 byte sectors: 0H 0S/T 0C)
 > 
 > [root@timon timon]# camcontrol inquiry da0
 > pass0: <CASIO DIGITAL_CAMERA 1.00> Removable Direct Access SCSI-0 device
 > pass0: 150KB/s transfers 
 > [root@timon timon]# usbdevs -v
 > Controller /dev/usb0:
 > addr 1: self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev
 > 1.00
 >  port 1 addr 2: low speed, power 98 mA, config 1, USB-PS/2 Optical
 > Mouse(0xc00e), Logitech(0x046d), rev 11.10
 >  port 2 addr 3: self powered, config 1, CASIO QV DIGITAL(0x1001), CASIO
 > COMPUTER(0x07cf), rev 10.00
 
 Patch is in pr kern/46545
 
>Unformatted:
