From phk@critter.freebsd.dk  Wed Oct  8 13:34:42 2008
Return-Path: <phk@critter.freebsd.dk>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0F6A2106568B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  8 Oct 2008 13:34:42 +0000 (UTC)
	(envelope-from phk@critter.freebsd.dk)
Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222])
	by mx1.freebsd.org (Postfix) with ESMTP id C59518FC15
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  8 Oct 2008 13:34:41 +0000 (UTC)
	(envelope-from phk@critter.freebsd.dk)
Received: from critter.freebsd.dk (unknown [192.168.61.3])
	by phk.freebsd.dk (Postfix) with ESMTP id 1B10F170E5
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  8 Oct 2008 13:17:57 +0000 (UTC)
Received: from critter.freebsd.dk (localhost [127.0.0.1])
	by critter.freebsd.dk (8.14.3/8.14.3) with ESMTP id m98DHu13057498
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 8 Oct 2008 13:17:56 GMT
	(envelope-from phk@critter.freebsd.dk)
Received: (from phk@localhost)
	by critter.freebsd.dk (8.14.3/8.14.3/Submit) id m98DHu1c057497;
	Wed, 8 Oct 2008 13:17:56 GMT
	(envelope-from phk)
Message-Id: <200810081317.m98DHu1c057497@critter.freebsd.dk>
Date: Wed, 8 Oct 2008 13:17:56 GMT
From: Poul-Henning Kamp <phk@critter.freebsd.dk>
Reply-To: Poul-Henning Kamp <phk@critter.freebsd.dk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Hotfind-D camera umass quirks
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         127943
>Category:       kern
>Synopsis:       Hotfind-D camera umass quirks
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 08 13:40:01 UTC 2008
>Closed-Date:    Wed Oct 08 13:54:12 UTC 2008
>Last-Modified:  Wed Oct 08 13:54:12 UTC 2008
>Originator:     Poul-Henning Kamp
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD critter.freebsd.dk 8.0-CURRENT FreeBSD 8.0-CURRENT #0 r183459M: Thu Oct 2 21:45:41 UTC 2008 root@:/freebsd/head/sys/i386/compile/CRITTER i386

	
>Description:

	www.SDS-infrared.com's Hotfind-D camera offers imagedownload
	via a USB mass storage interface.

	The following patch is the only combination I found that would
	make it A) work, and B) not panic FreeBSD-current.

>How-To-Repeat:
	Plug camera in.
>Fix:

Index: dev/usb/usbdevs
===================================================================
--- dev/usb/usbdevs	(revision 183674)
+++ dev/usb/usbdevs	(working copy)
@@ -1855,6 +1855,7 @@
 product OMNIVISION OV511PLUS	0xa511	OV511+ Camera
 
 /* OnSpec Electronic, Inc. */
+product ONSPEC SDS_HOTFIND_D	0x0400	SDS-infrared.com Hotfind-D Infrared Camera
 product ONSPEC MDCFE_B_CF_READER	0xa000	MDCFE-B USB CF Reader
 product ONSPEC CFMS_RW		0xa001	SIIG/Datafab Memory Stick+CF Reader/Writer
 product ONSPEC READER		0xa003	Datafab-based Reader
Index: dev/usb/umass.c
===================================================================
--- dev/usb/umass.c	(revision 183674)
+++ dev/usb/umass.c	(working copy)
@@ -610,6 +610,10 @@
 	  UMASS_PROTO_SCSI,
 	  NO_QUIRKS
 	},
+	{ USB_VENDOR_ONSPEC, USB_PRODUCT_ONSPEC_SDS_HOTFIND_D, RID_WILDCARD,
+	  UMASS_PROTO_SCSI | UMASS_PROTO_BBB,
+	  NO_GETMAXLUN | NO_SYNCHRONIZE_CACHE
+	},
 	{ USB_VENDOR_ONSPEC, USB_PRODUCT_ONSPEC_MDCFE_B_CF_READER, RID_WILDCARD,
 	  UMASS_PROTO_SCSI,
 	  NO_QUIRKS

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Wed Oct 8 13:54:03 UTC 2008 
State-Changed-Why:  
committed. 

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