From ivk@mail.kristal.ru  Sun Apr 21 23:09:26 2002
Return-Path: <ivk@mail.kristal.ru>
Received: from mail.kristal.ru (mail.kristal.ru [195.161.155.118])
	by hub.freebsd.org (Postfix) with ESMTP id EE55037B41C
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 21 Apr 2002 23:09:24 -0700 (PDT)
Received: from mail.kristal.ru (localhost [127.0.0.1])
	by mail.kristal.ru (8.12.2/8.12.2) with ESMTP id g3M60SJJ091969
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Apr 2002 16:00:28 +1000 (YAKST)
	(envelope-from ivk@mail.kristal.ru)
Received: (from ivk@localhost)
	by mail.kristal.ru (8.12.2/8.12.2/Submit) id g3M60Mwt091968;
	Mon, 22 Apr 2002 16:00:22 +1000 (YAKST)
Message-Id: <200204220600.g3M60Mwt091968@mail.kristal.ru>
Date: Mon, 22 Apr 2002 16:00:22 +1000 (YAKST)
From: Igor Kulemzin <ivk@kristal.ru>
Reply-To: Igor Kulemzin <ivk@kristal.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: PATCH
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37332
>Category:       kern
>Synopsis:       PATCH: add pen device to scsi_da.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    njl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 21 23:10:01 PDT 2002
>Closed-Date:    Thu Oct 17 10:41:36 PDT 2002
>Last-Modified:  Thu Oct 17 10:41:36 PDT 2002
>Originator:     Igor Kulemzin
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD mail.kristal.ru 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Apr 17 07:40:58 YAKST 2002 ivk@hold.crystall.local:/usr/obj/usr/src/sys/HOLD i386


	
>Description:
	
>How-To-Repeat:
	
>Fix:

	

--- patch1 begins here ---
Index: sys/cam/scsi/scsi_da.c
-----------------------------
--- scsi_da.c	Mon Apr 22 15:52:47 2002	1.42.2.23
+++ scsi_da.c	Mon Apr 22 15:52:53 2002
@@ -317,6 +317,13 @@
 		{T_DIRECT, SIP_MEDIA_REMOVABLE, "NO BRAND", "PEN DRIVE", "*"},
 		/*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
  	},
+	{
+		/*
+		 * Nonamed USB Pen Drive
+		 */
+		{T_DIRECT, SIP_MEDIA_REMOVABLE, "", "USB DISK", "*"},
+		/*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
+	},
  	{
 		/*
 		 * FujiFilm Camera
--- patch1 ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi 
Responsible-Changed-By: johan 
Responsible-Changed-When: Tue Apr 23 14:36:13 PDT 2002 
Responsible-Changed-Why:  
Over to maintainer group. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37332 
Responsible-Changed-From-To: freebsd-scsi->scsi 
Responsible-Changed-By: johan 
Responsible-Changed-When: Sat Aug 24 19:09:55 PDT 2002 
Responsible-Changed-Why:  
Use short names for mailing list to make searches    
using the web query form work with the shown responsible. 

This also makes open PRs show up in the summery mail. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=37332 
State-Changed-From-To: open->feedback 
State-Changed-By: njl 
State-Changed-When: Tue Oct 1 13:49:01 PDT 2002 
State-Changed-Why:  
Please add any missing info. 


Responsible-Changed-From-To: scsi->njl 
Responsible-Changed-By: njl 
Responsible-Changed-When: Tue Oct 1 13:49:01 PDT 2002 
Responsible-Changed-Why:  

New quirk maintainer.  Please add any information that is missing 
(i.e. new/old dmesg, exact device info, etc.)  You can find all the 
needed information at: 
http://www.root.org/~nate/freebsd/quirks.html 

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

From: Nate Lawson <nate@root.org>
To: Igor Kulemzin <ivk@kristal.ru>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/37332
Date: Wed, 2 Oct 2002 15:13:33 -0700 (PDT)

 Please respond.  This PR will be closed in 2 weeks.
 

From: Igor Kulemzin <ivk@kristal.ru>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/37332: PATCH: add pen device to scsi_da.c
Date: Fri, 4 Oct 2002 13:13:41 +1000

 camcontrol inquiry 0:0:0
 pass0: < USB DISK 1.05> Removable Direct Access SCSI-0 device
 pass0: Serial Number 
 pass0: 650KB/s transfers
 
 No brand disk, without name (maybe china)
 usbd -d -v:
 usbd: attach event at 1033639123.015733000, product 0x0100, vendor 0x0d7d:
   vndr=0x0d7d prdct=0x0100 rlse=0x0100 clss=0x0000 subclss=0x0000 prtcl=0x0000
   device names: umass0
 
 Transport type: USB
 
 dmesg output for failed attach attempts:
 umass0:          USB Disk    , rev 1.00/1.00, addr 2
 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: < USB DISK 1.05> Removable Direct Access SCSI-0 device
 da0: 650KB/s transfers
 da0: 62MB (128000 512 byte sectors: 64H 32S/T 62C)
 umass0: BBB reset failed, TIMEOUT
 umass0: BBB bulk-in clear stall failed, TIMEOUT
 umass0: BBB bulk-out clear stall failed, TIMEOUT
 umass0: BBB reset failed, TIMEOUT
 umass0: BBB bulk-in clear stall failed, TIMEOUT
 umass0: BBB bulk-out clear stall failed, TIMEOUT
 msdos: /dev/da0s1: Input/output error
 
 dmesg output for successful attach attempts:
 umass0:          USB Disk    , rev 1.00/1.00, addr 2
 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: < USB DISK 1.05> Removable Direct Access SCSI-0 device
 da0: 650KB/s transfers
 da0: 62MB (128000 512 byte sectors: 64H 32S/T 62C)
 Re-scan of bus 0 was successful
 
 ivk@kristal.ru
 
 

From: Nate Lawson <nate@root.org>
To: Igor Kulemzin <ivk@kristal.ru>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/37332: PATCH: add pen device to scsi_da.c
Date: Thu, 17 Oct 2002 10:33:16 -0700 (PDT)

 Thank you for your information.  Only one more question -- what does dmesg
 report if you don't include the NO_SYNC_CACHE quirk, only the NO_6_BYTE?
 
 -Nate
 
State-Changed-From-To: feedback->closed 
State-Changed-By: njl 
State-Changed-When: Thu Oct 17 10:40:58 PDT 2002 
State-Changed-Why:  
Duplicate filed in kern/43649 with more information, please follow up with 
that PR instead of this one. 

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