From owner-freebsd-bugs Thu Feb 7 13:40:17 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E90FF37B422 for ; Thu, 7 Feb 2002 13:40:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g17Le0g84929; Thu, 7 Feb 2002 13:40:00 -0800 (PST) (envelope-from gnats) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by hub.freebsd.org (Postfix) with ESMTP id 8141237B41D for ; Thu, 7 Feb 2002 13:39:31 -0800 (PST) Received: (from olli@localhost) by lurza.secnetix.de (8.11.6/8.11.6) id g17LdUs01488; Thu, 7 Feb 2002 22:39:30 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Message-Id: <200202072139.g17LdUs01488@lurza.secnetix.de> Date: Thu, 7 Feb 2002 22:39:30 +0100 (CET) From: Oliver Fromme Reply-To: Oliver Fromme To: FreeBSD-gnats-submit@freebsd.org Cc: Oliver Fromme X-Send-Pr-Version: 3.113 Subject: kern/34712: [patch] SCSI quirk for USB Memorybird Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34712 >Category: kern >Synopsis: [patch] SCSI quirk for USB Memorybird >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Feb 07 13:40:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Oliver Fromme >Release: FreeBSD 4.5-RELEASE i386 >Organization: secnetix GmbH & Co KG >Environment: System: FreeBSD lurza.secnetix.de 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Thu Feb 7 22:12:04 CET 2002 olli@lurza.secnetix.de:/usr/src/sys/compile/LURZA i386 >Description: The USB Memorybird (Fujitsu-Siemens) requires a SCSI quirk for operation (it doesn't handle 6-byte SCSI read commands). FYI, the Memorybird is a small, pen-shaped, battery-less flash memory device. For more information on the hardware: http://www.fujitsu-siemens.com/rl/peripherals/homeperipherals/memorybird.html >How-To-Repeat: Connect a Memorybird to the USB port and try to access it. You'll get messages like this: umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT With the patch below attached, everything works perfectly fine. >Fix: --- src/sys/cam/scsi/scsi_da.c.orig Mon Jan 14 10:25:43 2002 +++ src/sys/cam/scsi/scsi_da.c Thu Feb 7 22:07:33 2002 @@ -345,6 +345,14 @@ */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "DIVA USB", "Media Reader","*"}, /*quirks*/ DA_Q_NO_6_BYTE + }, + { + /* + * Fujitsu-Siemens Memorybird. + * Doesn't work correctly with 6 byte reads/writes. + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "Fujitsu", "Memorybird", "*"}, + /*quirks*/ DA_Q_NO_6_BYTE } }; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message