From owner-freebsd-usb@FreeBSD.ORG Wed Jun 27 14:10:03 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3743416A421 for ; Wed, 27 Jun 2007 14:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 14EEB13C44B for ; Wed, 27 Jun 2007 14:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5REA2sT059321 for ; Wed, 27 Jun 2007 14:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5REA2rt059320; Wed, 27 Jun 2007 14:10:02 GMT (envelope-from gnats) Resent-Date: Wed, 27 Jun 2007 14:10:02 GMT Resent-Message-Id: <200706271410.l5REA2rt059320@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrew Muhametshin Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 959CE16A421 for ; Wed, 27 Jun 2007 14:04:51 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 8701913C44B for ; Wed, 27 Jun 2007 14:04:51 +0000 (UTC) (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 l5RE4o5k005984 for ; Wed, 27 Jun 2007 14:04:51 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l5RE4oLb005983; Wed, 27 Jun 2007 14:04:50 GMT (envelope-from nobody) Message-Id: <200706271404.l5RE4oLb005983@www.freebsd.org> Date: Wed, 27 Jun 2007 14:04:50 GMT From: Andrew Muhametshin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: usb/114068: Problems with connection of the umass device (Samsung VY-H350 Voice recorder) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 14:10:03 -0000 >Number: 114068 >Category: usb >Synopsis: Problems with connection of the umass device (Samsung VY-H350 Voice recorder) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 27 14:10:02 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Andrew Muhametshin >Release: FreeBSD-6.2-STABLE >Organization: >Environment: $ uname -a FreeBSD inspirra.localdomain 6.2-STABLE FreeBSD 6.2-STABLE #7: Tue Jun 19 08:38:32 MSD 2007 root@inspirra.localdomain:/SHARED/obj.inspirra/usr/src/sys/INSPIRRA i386 >Description: After connection of the device (Samsung VY-H350 Voice recorder): kernel: umass0: kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 kernel: umass0:6:0:-1: Attached to scbus6 kernel: (da0:umass-sim0:0:0:0): got CAM status 0x4 kernel: (da0:umass-sim0:0:0:0): fatal error, failed to attach to device kernel: (da0:umass-sim0:0:0:0): lost device kernel: (da0:umass-sim0:0:0:0): removing device entry I have found the description (and solution) similar problems with not supported umass-devices, here: http://root.org/~nate/freebsd/scsi/quirks.html and here: http://www.freebsd.org/cgi/query-pr.cgi?pr=65436 By analogy, has tried to create patch: ============================START==================================== *** sys/dev/usb/usbdevs.orig Tue Jun 19 09:34:56 2007 --- sys/dev/usb/usbdevs Tue Jun 19 06:21:10 2007 *************** *** 1679,1684 **** --- 1679,1685 ---- /* Samsung products */ product SAMSUNG ML6060 0x3008 ML-6060 laser printer + product SAMSUNG VYH350 0x500b VY-H350 Voice recorder /* SanDisk products */ product SANDISK SDDR05A 0x0001 ImageMate SDDR-05a *** src/sys/cam/scsi/scsi_da.c.orig Tue Jun 19 05:14:52 2007 --- src/sys/cam/scsi/scsi_da.c Tue Jun 19 09:27:35 2007 *************** *** 475,480 **** --- 475,487 ---- {T_DIRECT, SIP_MEDIA_REMOVABLE, "EM732X", "MP3 Player*", "1.0"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, + { + /* + * SAMSUNG VY-H350 1.00 Voice Recorder + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "*", "VY-H350*", "*"}, + /*quirks*/ DA_Q_NO_SYNC_CACHE + }, }; static disk_strategy_t dastrategy; *** sys/dev/usb/umass.c.orig Tue Jun 19 09:32:03 2007 --- sys/dev/usb/umass.c Tue Jun 19 09:32:25 2007 *************** *** 540,545 **** --- 540,549 ---- UMASS_PROTO_ATAPI | UMASS_PROTO_CBI_I, FORCE_SHORT_INQUIRY }, + { USB_VENDOR_SAMSUNG, USB_PRODUCT_SAMSUNG_VYH350, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + IGNORE_RESIDUE + }, { VID_EOT, PID_EOT, RID_EOT, 0, 0 } }; ============================STOP===================================== I have applied my patch, and have rebuild a kernel... But unfortunately, my patch has not given result. Where I have made a mistake? Connection of the device after my patch: kernel: umass0: kernel: umass0: SCSI over Bulk-Only; quirks = 0x0080 kernel: umass0:6:0:-1: Attached to scbus6 kernel: (da0:umass-sim0:0:0:0): got CAM status 0x4 kernel: (da0:umass-sim0:0:0:0): fatal error, failed to attach to device kernel: (da0:umass-sim0:0:0:0): lost device kernel: (da0:umass-sim0:0:0:0): removing device entry $ usbdevs -v Controller /dev/usb0: addr 125: full speed, self powered, config 1, VY-H350 Voice recorder(0x500b), Samsung(0x04e8), rev 1.00 addr 126: full speed, power 100 mA, config 1, Jabra - A320s(0x2101), Broadcom Corp(0x0a5c), rev 1.00 addr 127: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 addr 126: full speed, power 100 mA, config 1, Jabra - A320s(0x2101), Broadcom Corp(0x0a5c), rev 1.00 port 6 addr 125: full speed, self powered, config 1, VY-H350 Voice recorder(0x500b), Samsung(0x04e8), rev 1.00 port 7 powered port 8 powered >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: