From owner-freebsd-usb@FreeBSD.ORG Sun Mar 2 06:10:51 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1D2F1065677; Sun, 2 Mar 2008 06:10:51 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 99CF98FC17; Sun, 2 Mar 2008 06:10:51 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m226Apfp069160; Sun, 2 Mar 2008 06:10:51 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m226Apm0069156; Sun, 2 Mar 2008 06:10:51 GMT (envelope-from linimon) Date: Sun, 2 Mar 2008 06:10:51 GMT Message-Id: <200803020610.m226Apm0069156@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-i386@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/121275: [boot] FreeBSD fails to boot with usb legacy support enabled 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: Sun, 02 Mar 2008 06:10:51 -0000 Old Synopsis: FreeBSD fails to boot New Synopsis: [boot] FreeBSD fails to boot with usb legacy support enabled Responsible-Changed-From-To: freebsd-i386->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Sun Mar 2 06:10:14 UTC 2008 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=121275 From owner-freebsd-usb@FreeBSD.ORG Sun Mar 2 23:36:12 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2E5A106566B for ; Sun, 2 Mar 2008 23:36:12 +0000 (UTC) (envelope-from duane.hesser@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id 8CB488FC16 for ; Sun, 2 Mar 2008 23:36:12 +0000 (UTC) (envelope-from duane.hesser@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so6123280waf.3 for ; Sun, 02 Mar 2008 15:36:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:message-id:date:from:to:subject:reply-to:x-mailer:mime-version:content-type:content-transfer-encoding; bh=u0UWJIppYvvfdMCPeJm/FM9IzCD42FfaLgBhHO7urh8=; b=Ycx/07MYsRsCqS+4HXbbxXbCLMMoLkhpErQhp5hF/7sZZ6WQEomm1QLTlZcTJDgcvJqlFqYQfSSpEzqWUbU0YCTd+u0zwtXQ/N7XthmRgd35gXYyQLU2CnXIDFfMMrpdNgYvkKCObWEMUJWegu1lO7gSQz/DiV2phubThFkzmvc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:reply-to:x-mailer:mime-version:content-type:content-transfer-encoding; b=pKLAXvjsNMy7WxA0FbxT+KZ29Iw9Jb3JO02FVRalq0vlHUwEdpN+FgSBMJWxj0ZopO9Qo3Sld3i+AVMzc3gSuoz5ej0kdp5JW2Kb6ot6kv3nx5729P8AgBLxRp8P43Abhzu2eYjoZKm37vsyc0TQG1YDOspOa8ecoSigNCl86nk= Received: by 10.114.144.1 with SMTP id r1mr3778733wad.53.1204499240324; Sun, 02 Mar 2008 15:07:20 -0800 (PST) Received: from belinda.androcles.org ( [64.146.146.203]) by mx.google.com with ESMTPS id k26sm24146784waf.8.2008.03.02.15.07.18 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 02 Mar 2008 15:07:18 -0800 (PST) Received: from belinda.androcles.org (localhost [127.0.0.1]) by belinda.androcles.org (8.14.2/8.14.2/8.13.3/1) with SMTP id m22N7qQs003621 for ; Sun, 2 Mar 2008 15:07:53 -0800 (PST) (envelope-from duane.hesser@gmail.com) Message-Id: <200803022307.m22N7qQs003621@belinda.androcles.org> Date: Sun, 2 Mar 2008 15:07:52 -0800 From: "Duane H. Hesser" To: freebsd-usb@freebsd.org X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.8; i386-portbld-freebsd6.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: enhanced (experimental) ums mouse driver (USB) and mouse_report tool X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Duane.Hesser@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Mar 2008 23:36:12 -0000 I have posted to the web experimental patches to the FreeBSD usb mouse driver. I would appreciate reports from anyone willing to test the revised driver, with particular attention to possible regressions. URL: http://accima.com/members/dhesser/fbsd_mouse_stuff/ The current FreeBSD mouse driver accomodates only mice which offer a single input report, with the exception of a few mice which have been "quirked" or special-cased. The revised driver will also recognize and attach mice which offer multiple input reports. Quirks are not needed for HID conforming mice, and existing quirks and specialized code branches have been removed from the code. The driver also includes several ioctl targets which allow user-level application code access to mouse data. A command-line tool, 'mouse_report' is also posted to the web at the above location, which will report all of the device information and the decoded report descriptor, and read and display data from the mouse. The patched driver is needed for this to work. The current patches are against recent 6.3 sources acquired in the normal manner via csup. I have some manually patched files which may work in the 7.x branch, but they are entirely untested, and are subject to typos. I can send them to a volunteer for initial testing. Here is an expanded description of the changes: - Routines are included in hid.c to replace the defective hid_report_size() function, and to allow a replacment for the h_locate() function, to acquire and report the proper input data report ID, if one exists. The new functions are given altered names to avoid impacting other drivers which may use these functions (although thought should be given to replacing hid_report_size() anywhere that multiple reports may be present in an hid report descriptor). The ums driver attach routine uses these functions to explore and configure the mouse. - the driver now sports a number of new ioctls which permit user level programs to display the device, interface and report descriptors, driver "mode", etc. A new program "mouse_report" will display all of this information, and will read and display the protocol data sent from the driver to the consumer (e.g. X). Several examples of mouse_report output are provided along with the program and USB patches. NOTE that the program REQUIRES the updated ums driver. - some simple changes to usb_subr.c in the probe and attach routine to report interface data. There are no funcional changes in this file, but until you change some defines at the top of the file your boot messages will include some additional information about device and interface ids. This information should be prettied up and made standard. Note that this provides info on all usb devices scanned, not just the mouse driver. - an "extended sysmouse" protocol has been added to permit the driver to send "tilt" data to the consumer, for use in horizontal scrolling. This extended protocol is not used unless the consumer app asks for it (mode level 3). Patches are available to allow the current Xorg mouse driver to read this protocol and set the mode level on open of the device. Note that the existing ums driver (at least the 7.0 one) and X mouse driver "handle" tilt data, but are unable to communicate the data because the protocol packetsize is too small; this establishes a protocol by a new number which is nearly identical, save for a larger packetsize and inclusion of the tilt data. Additional changes to the sysmouse driver and moused will be required to allow the "tilt enabled" version of the Xorg server to work with moused (and it may be necessary to update the psm driver to allow it to share an expanded pipe when X is configured to use both PS/2 and usb mice). The mods are straightforward, but I won't make them until there is some likelihood that this work will be adopted. It's not certain that "tilt" is worth the effort (and there may be a better way). It is not necessary to install the X patches in order to use the new ums driver. The X server/driver changes are needed only to enable "tilt" processing for horizontal scrolling. The new driver has been tested on 5 mice [2 Logitech, 2 Microsoft, and 1 HP (BTC)]: ums0: Logitech N48, class 0/0, rev 1.00/4.01, addr 4, iclass 3/1 (Old, corded, roller ball) ums1: Microsoft Microsoft Wireless Optical Mouse_ 1.00, class 0/0, rev 2.00/0.07, addr 2, iclass 3/1 (Microsoft Wireless Notebook Optical Mouse 3000, Model 1056) ums2: Microsoft Microsoft_ 2.4GHz Transceiver V2.0, class 0/0, rev 2.00/2.50, addr 3, iclass 3/1 (Microsoft 2.4 Ghz wireless notebook mouse) ums3: BTC USB Multimedia Cordless Kit, rev 2.00/1.30, addr 2, iclass 3/1 (HP Model 5189URF) ums4: Logitech USB-PS/2 Optical Mouse, class 0/0, rev 2.00/27.20, addr 6, iclass 3/1 (Logitech Model M-BZ96C) I EXPECT this driver to recognize and operate, without quirk, most 'normal' USB mice with 2-8 buttons and X and Y data axes, as well as wheels which provide a third (Z) axis (for vertical scrolling). The objective is to allow most run-of-the-mill mice to 'just work'. Most existing quirks (including those added in 7.0) have been removed, because I believe the problems they addressed are handled more directly by this version of the driver. This could well be a foolish expectation, hence the emphasis on testing for regressions. The files may be found at http://accima.com/members/dhesser/freebsd/mousestuff/ -- Duane H. Hesser uane.hesser@gmail.com From owner-freebsd-usb@FreeBSD.ORG Mon Mar 3 00:01:29 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 363B8106566B for ; Mon, 3 Mar 2008 00:01:29 +0000 (UTC) (envelope-from oliver@akephalos.de) Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.de [194.25.134.82]) by mx1.freebsd.org (Postfix) with ESMTP id 9C4908FC17 for ; Mon, 3 Mar 2008 00:01:28 +0000 (UTC) (envelope-from oliver@akephalos.de) Received: from fwd28.aul.t-online.de by mailout05.sul.t-online.com with smtp id 1JVy7S-000305-01; Mon, 03 Mar 2008 01:01:26 +0100 Received: from localhost (bps350ZJZtwXHEnO+fVxa0j51xph29FtKh2zyIW0khcC+PMR5nbT4ekNS62DwGq6P4Pig1BOA3@[91.21.111.187]) by fwd28.t-online.de with esmtp id 1JVy7B-0vR1Lk0; Mon, 3 Mar 2008 01:01:09 +0100 Date: Mon, 3 Mar 2008 01:01:10 +0100 From: Oliver Herold To: freebsd-usb@freebsd.org Message-ID: <20080303000110.GA76566@asgard.home> Mail-Followup-To: Oliver Herold , freebsd-usb@freebsd.org References: <200803022307.m22N7qQs003621@belinda.androcles.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline In-Reply-To: <200803022307.m22N7qQs003621@belinda.androcles.org> X-PGP-Key: http://www.fixmbr.de/wp-content/uploads/oliver-gpg-key.asc User-Agent: Mutt/1.5.17 (2007-11-01) X-ID: bps350ZJZtwXHEnO+fVxa0j51xph29FtKh2zyIW0khcC+PMR5nbT4ekNS62DwGq6P4Pig1BOA3 X-TOI-MSGID: 83290971-085c-4947-b9c6-ccebf2491cd4 Subject: Re: enhanced (experimental) ums mouse driver (USB) and mouse_report tool 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: Mon, 03 Mar 2008 00:01:29 -0000 --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Would be nice to test, but without support for FBSD 7 it's rather useless for me. I have two problematic mice, one Microsoft Notebook Optical 3000 and one Razer Copperhead. Both of them are working with patches in FBSD 7 (I'm using RELENG_7). Oliver Duane H. Hesser wrote: > I have posted to the web experimental patches to the FreeBSD usb > mouse driver. I would appreciate reports from anyone willing to > test the revised driver, with particular attention to possible > regressions. >=20 > URL: http://accima.com/members/dhesser/fbsd_mouse_stuff/ >=20 > The current FreeBSD mouse driver accomodates only mice which offer > a single input report, with the exception of a few mice which have > been "quirked" or special-cased. >=20 > The revised driver will also recognize and attach mice which offer > multiple input reports. Quirks are not needed for HID conforming > mice, and existing quirks and specialized code branches have been > removed from the code. The driver also includes several ioctl > targets which allow user-level application code access to mouse data. >=20 > A command-line tool, 'mouse_report' is also posted to the web at > the above location, which will report all of the device information > and the decoded report descriptor, and read and display data from > the mouse. The patched driver is needed for this to work. >=20 > The current patches are against recent 6.3 sources acquired in > the normal manner via csup. I have some manually patched files > which may work in the 7.x branch, but they are entirely untested, > and are subject to typos. I can send them to a volunteer for > initial testing. >=20 > Here is an expanded description of the changes: >=20 > - Routines are included in hid.c to replace > the defective hid_report_size() function, and to > allow a replacment for the h_locate() function, to > acquire and report the proper input data report ID, > if one exists. The new functions are given altered > names to avoid impacting other drivers which may > use these functions (although thought should be > given to replacing hid_report_size() anywhere that > multiple reports may be present in an hid report > descriptor). The ums driver attach routine uses > these functions to explore and configure the mouse. >=20 > - the driver now sports a number of new ioctls which permit > user level programs to display the device, interface and > report descriptors, driver "mode", etc. A new program > "mouse_report" will display all of this information, and > will read and display the protocol data sent from the > driver to the consumer (e.g. X). Several examples of > mouse_report output are provided along with the program > and USB patches. NOTE that the program REQUIRES the > updated ums driver. >=20 > - some simple changes to usb_subr.c in the probe and attach > routine to report interface data. There are no funcional > changes in this file, but until you change some defines > at the top of the file your boot messages will include > some additional information about device and interface ids. > This information should be prettied up and made standard. > Note that this provides info on all usb devices scanned, > not just the mouse driver. >=20 > - an "extended sysmouse" protocol has been added to permit > the driver to send "tilt" data to the consumer, for use > in horizontal scrolling. This extended protocol is not > used unless the consumer app asks for it (mode level 3). > Patches are available to allow the current Xorg mouse > driver to read this protocol and set the mode level on > open of the device. Note that the existing ums driver > (at least the 7.0 one) and X mouse driver "handle" tilt > data, but are unable to communicate the data because > the protocol packetsize is too small; this establishes > a protocol by a new number which is nearly identical, > save for a larger packetsize and inclusion of the tilt > data. >=20 > Additional changes to the sysmouse driver and moused > will be required to allow the "tilt enabled" version of > the Xorg server to work with moused (and it may be necessary > to update the psm driver to allow it to share an expanded > pipe when X is configured to use both PS/2 and usb mice). >=20 > The mods are straightforward, but I won't make them until > there is some likelihood that this work will be adopted. > It's not certain that "tilt" is worth the effort (and > there may be a better way). >=20 > It is not necessary to install the X patches in order to > use the new ums driver. The X server/driver changes are > needed only to enable "tilt" processing for horizontal > scrolling. >=20 > The new driver has been tested on 5 mice [2 Logitech, 2 Microsoft, > and 1 HP (BTC)]: >=20 > ums0: Logitech N48, class 0/0, rev 1.00/4.01, addr 4, iclass 3/1 > (Old, corded, roller ball) > ums1: Microsoft Microsoft Wireless Optical Mouse_ 1.00, class 0/0, rev 2.= 00/0.07, addr 2, iclass 3/1 > (Microsoft Wireless Notebook Optical Mouse 3000, Model 1056) > ums2: Microsoft Microsoft_ 2.4GHz Transceiver V2.0, class 0/0, rev 2.00/2= =2E50, addr 3, iclass 3/1 > (Microsoft 2.4 Ghz wireless notebook mouse) > ums3: BTC USB Multimedia Cordless Kit, rev 2.00/1.30, addr 2, iclass 3/1 > (HP Model 5189URF) > ums4: Logitech USB-PS/2 Optical Mouse, class 0/0, rev 2.00/27.20, addr 6,= iclass 3/1 > (Logitech Model M-BZ96C) >=20 >=20 > I EXPECT this driver to recognize and operate, without quirk, most > 'normal' USB mice with 2-8 buttons and X and Y data axes, as well > as wheels which provide a third (Z) axis (for vertical scrolling). > The objective is to allow most run-of-the-mill mice to 'just work'. >=20 > Most existing quirks (including those added in 7.0) have been > removed, because I believe the problems they addressed are handled > more directly by this version of the driver. This could well be > a foolish expectation, hence the emphasis on testing for regressions. >=20 > The files may be found at >=20 > http://accima.com/members/dhesser/freebsd/mousestuff/ >=20 > -- > Duane H. Hesser > uane.hesser@gmail.com > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" --=20 13. ... r-q1 --GvXjxJ+pjyke8COw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfLP8QACgkQbZFSiGSuUEg00wCeLWA7iNv4taxqSpnALb0JtXmr D1EAoKpcYAokZD7PDjKqoYpIISUWfy/I =1zkq -----END PGP SIGNATURE----- --GvXjxJ+pjyke8COw-- From owner-freebsd-usb@FreeBSD.ORG Mon Mar 3 11:07:19 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F5B31065671 for ; Mon, 3 Mar 2008 11:07:19 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F114B8FC18 for ; Mon, 3 Mar 2008 11:07:18 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m23B7Iu4022227 for ; Mon, 3 Mar 2008 11:07:18 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m23B7I15022223 for freebsd-usb@FreeBSD.org; Mon, 3 Mar 2008 11:07:18 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 3 Mar 2008 11:07:18 GMT Message-Id: <200803031107.m23B7I15022223@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org 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: Mon, 03 Mar 2008 11:07:19 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa o usb/91629 usb usbd_abort_pipe() may result in infinite loop 2 problems total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o bin/57255 usb usbd and multi-function devices o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] [hang] mounting write-protected umass device a o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb [pcm] 5.3-STABLE(2005 1/4) detect USB headset, But can o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/77294 usb [ulpcom] [panic] ucom + ulpcom panic o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa a usb/79656 usb [ehci] RHSC interrupts lost o usb/79722 usb [ehci] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80829 usb [modules] [panic] possible panic when loading USB-modu o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82660 usb [echi] [panic] EHCI: I/O stuck in state 'physrd'/panic o usb/83563 usb [umamss] [panic] Page Fault while detaching Mpman Usb o usb/83677 usb [usb] [request] usb controller often not detected (Sun o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. p usb/88966 usb [modules] kldunload ucom.ko returns "Device busy" erro s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/89954 usb [umass] [panic] USB Disk driver race condition? o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/91283 usb [boot] booting very slow with usb devices connection ( o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/92052 usb [unlpt] usbd causes defunct process with busy file-han o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93640 usb [echi] [irq] device ehci causes interrupt storm on thi o usb/93828 usb [ochi] [panic] ohci causes panic on boot (HP Pavillion o usb/94166 usb [umass] [boot] btx halted with a flashcard plugged o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94813 usb [umass] mounting write-protected umass device freezes o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk s usb/95348 usb [kbd] USB keyboard unplug causes noise on screen o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 s usb/96120 usb [ums] [request] USB mouse not always detected o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync o usb/96457 usb [umass] [panic] fatback on umass = reboot s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/99431 usb [kbd] FreeBSD on MSI 6566E (Intel 845E motherboards) d o usb/101096 usb [if_ural] [panic] USB WLAN occasionally causes kernel- o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work f usb/102096 usb [patch] usbd(8) does not handle multiple devices in on o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse s usb/106832 usb USB HP printer is not detected by kernel when ACPI ena o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107924 usb [patch] usbd(8) does not call detach o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE (regr o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/109397 usb [panic] on boot from USB flash o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/113478 usb [boot] [request] FreeBSD could not start on Core2Duo n s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 o usb/113851 usb [boot] Unable to boot install cd from USB-CDROM s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114682 usb [umass] generic USB media-card reader unusable o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116947 usb [ukbd] [patch] enable boot protocol on the USB keyboar o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118391 usb [usbdevs] [patch] Add uscanner ID for Epson CX4800 o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/119018 usb [usbd] HP ScanJet 4300C found as knowndev but not reco o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119509 usb USB flaky on Dell Optiplex 755 o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/120017 usb [ehci] [patch] CS5536 (AMD Geode) USB 2.0 quirk o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120786 usb Kernelpanik when forced umount of a dettached USB Hard f usb/120873 usb if_zyd and if_rum panic in usb_transfer_complete o usb/121168 usb Kernel panic when try to unmount removed usbdrive o usb/121232 usb remove PCCARD rebooted system o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e 126 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/48342 usb [usbd] [patch] usbd dynamic device list. s usb/51958 usb [urio] [patch] update for urio driver s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 o usb/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71455 usb [umass] Slow USB umass performance of 5.3 s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R a usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76732 usb Mouse problems with USB KVM Switch o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ s usb/80777 usb [request] usb_rem_task() should wait for callback to c o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. f usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/83863 usb [ugen] Communication problem between opensc/openct via s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device o usb/85257 usb [boot] BTX boot loader fails on USB CDROM (HP DL145 Op o usb/86298 usb [mouse] Known good USB mouse won't work with correct s o usb/87224 usb Cannot mount USB Zip750 o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/88408 usb [axe] axe0 read PHY failed o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91896 usb [camcontrol] Serial Number of USB Memory Sticks is not o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/99538 usb [kbd] while using USB keyboard default params of atkbd o usb/100746 usb [kbd] system does not boot due to USB keyboard problem o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/102678 usb [kbd] Dell PowerEdge DRAC5 USB Keyboard does not work o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103418 usb [usbhidctl] [patch] [request] usbhidctl: add ability t o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/105065 usb [sata] SATA - USB Bridge o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) ( o usb/107665 usb [usbdevs] [patch] uscanner support for epson stylus DX s usb/107701 usb [usbd] [request] usbd ignores "detach" o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/108056 usb [ohci] Mouse gets powered off during device probe when s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108509 usb [hang] FreeBSD hang at startup after ehci0 detected (C o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC s usb/110991 usb [usbdevs] [patch] QUIRK: Super Top IDE DEVICE (depends o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/114068 usb [umass] [patch] Problems with connection of the umass o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o usb/115080 usb [usbdevs] [patch] allow using a Hercules HWGUSB2-54-V2 o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/116574 usb [ehci] [patch] Add device ids for ICH8 USB chipsets f usb/116898 usb [panic] sleeping thread while using USB hard drive to o usb/117075 usb [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/117185 usb [umodem] [patch] Add support for UNION interface descr o usb/117205 usb [uscanner] [patch] uscanner support for HP ScanJet 447 o usb/117546 usb [usbdevs] [patch] Add MaxStream ZigBee product ID to u o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/118374 usb [usbdevs] [patch] support Option GlobeTrotter Max 3.6 o usb/118479 usb [ubsa] [patch] ubsa driver does not recognize AnyDATA o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround s usb/118571 usb [boot] [request] fix BTX issues when booting FreeBSD 7 o usb/118670 usb [ums] [patch] Razer Copperhead Laser Mouse shows up as o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118741 usb [umass] [patch] Support for Nikon D300 digital camera o usb/119150 usb [usbdevs] [patch] new usbdevs for CDMA 1xEVDO devices o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED (regress o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR (regression) o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119981 usb [usbdevs] [patch] add support for LOGITEC LAN-GTJ/U2 g o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a f usb/120859 usb laserjet1000 PR#99460 how to install the patch? o usb/121045 usb Add support for PC-OP-RS1 and KURO-RS o usb/121052 usb Microsoft Notebook Optical Mouse 3000 (model 1049) doe o usb/121169 usb Issues with usb mp3 player o usb/121184 usb uipaq: add ids from linux ipaq driver (plus a "quirk") 122 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Mar 3 12:43:03 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 198CC106566B for ; Mon, 3 Mar 2008 12:43:03 +0000 (UTC) (envelope-from nick-lists@netability.ie) Received: from mail.acquirer.com (mail.acquirer.com [87.198.142.10]) by mx1.freebsd.org (Postfix) with ESMTP id 7FDA08FC28 for ; Mon, 3 Mar 2008 12:43:01 +0000 (UTC) (envelope-from nick-lists@netability.ie) X-Envelope-To: Received: from crumpet.foobar.org (crumpet-linux-is.netability.ie [10.228.100.8]) (authenticated bits=0) by mail.acquirer.com (8.13.6/8.13.8) with ESMTP id m23CWnSE063777 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 3 Mar 2008 12:32:49 GMT (envelope-from nick-lists@netability.ie) Message-ID: <47CBEFF1.3040808@netability.ie> Date: Mon, 03 Mar 2008 12:32:49 +0000 From: Nick Hilliard User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on muffin.acquirer.com X-Virus-Scanned: ClamAV 0.91.2/6092/Mon Mar 3 05:04:26 2008 on muffin.acquirer.com X-Virus-Status: Clean Subject: D-Link DUB-E100 revision B 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: Mon, 03 Mar 2008 12:43:03 -0000 Hello, Any chance that someone could MFC v1.56 of sys/dev/usb/if_axe.c and v1.17 of sys/dev/usb/if_axereg.h in RELENG_7. This will allow usb/106621 to be closed and also axe.4 to be updated to note that both DUB-E100 Revision A and B models are supported? thanks, Nick From owner-freebsd-usb@FreeBSD.ORG Mon Mar 3 15:16:09 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94FE21065672; Mon, 3 Mar 2008 15:16:09 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7AB1C8FC1E; Mon, 3 Mar 2008 15:16:09 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m23FG9nH047672; Mon, 3 Mar 2008 15:16:09 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m23FG91d047668; Mon, 3 Mar 2008 15:16:09 GMT (envelope-from gavin) Date: Mon, 3 Mar 2008 15:16:09 GMT Message-Id: <200803031516.m23FG91d047668@freefall.freebsd.org> To: octavian.covalschi@gmail.com, gavin@FreeBSD.org, freebsd-usb@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: usb/121168: Kernel panic when try to unmount removed usbdrive 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: Mon, 03 Mar 2008 15:16:09 -0000 Synopsis: Kernel panic when try to unmount removed usbdrive State-Changed-From-To: open->closed State-Changed-By: gavin State-Changed-When: Mon Mar 3 15:15:21 UTC 2008 State-Changed-Why: Close, duplicate of usb/46176. http://www.freebsd.org/cgi/query-pr.cgi?pr=121168 From owner-freebsd-usb@FreeBSD.ORG Mon Mar 3 22:17:03 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94A8C1065674 for ; Mon, 3 Mar 2008 22:17:03 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.freebsd.org (Postfix) with ESMTP id 651428FC1D for ; Mon, 3 Mar 2008 22:17:03 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from [192.168.1.100] (adsl-68-250-179-2.dsl.wotnoh.ameritech.net [68.250.179.2]) (authenticated bits=0) by mail.united-ware.com (8.14.2/8.14.2) with ESMTP id m23LwPmF020573 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 3 Mar 2008 16:58:26 -0500 (EST) (envelope-from amistry@am-productions.biz) From: Anish Mistry Organization: AM Productions To: freebsd-usb@freebsd.org Date: Mon, 3 Mar 2008 16:54:16 -0500 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1264099.6AENGxkrr7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200803031654.31592.amistry@am-productions.biz> X-Virus-Scanned: ClamAV 0.91.2/6096/Mon Mar 3 14:16:53 2008 on mail.united-ware.com X-Virus-Status: Clean Subject: Suspend/Sleep/Stop USB device 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: Mon, 03 Mar 2008 22:17:03 -0000 --nextPart1264099.6AENGxkrr7 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline How do I suspend/sleep/stop a USB device. This was discussed on the=20 list previously with no conclusion. My situation is a little=20 different. I've got a laptop with a built-in USB camera. The camera=20 physically gets warm to the touch when I'm running FreeBSD. This=20 doesn't matter if I've got usb loaded or not. Since it is obviously=20 drawing a significant amount of power I'd like to be able to turn it=20 off. How would I get the usb device to suspend? In Windows Vista it does not get warm to the touch unless it is=20 actually being used to capture video. So there should be a way to=20 suspend the device. Thanks, =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --nextPart1264099.6AENGxkrr7 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBHzHOJxqA5ziudZT0RAn/oAKCoRa8Tus9M86n9Cpj06VcyGeue8QCgsAwP p0v/slyCWaE5779RvWiLFEI= =hx0n -----END PGP SIGNATURE----- --nextPart1264099.6AENGxkrr7-- From owner-freebsd-usb@FreeBSD.ORG Mon Mar 3 22:20:04 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9806F1065676 for ; Mon, 3 Mar 2008 22:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7DAC28FC1D for ; Mon, 3 Mar 2008 22:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m23MK4fY082840 for ; Mon, 3 Mar 2008 22:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m23MK43d082838; Mon, 3 Mar 2008 22:20:04 GMT (envelope-from gnats) Date: Mon, 3 Mar 2008 22:20:04 GMT Message-Id: <200803032220.m23MK43d082838@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Toomas Aas Cc: Subject: Re: usb/120321: [hang] System hangs when transferring data to WD MyBook USB HDD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Toomas Aas List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 22:20:04 -0000 The following reply was made to PR usb/120321; it has been noted by GNATS. From: Toomas Aas To: bug-followup@freebsd.org Cc: Subject: Re: usb/120321: [hang] System hangs when transferring data to WD MyBook USB HDD Date: Tue, 4 Mar 2008 00:17:33 +0200 I have discarded the MyBooks and am now using Canyon CNR-HDD35SA2 external disk enclosures with Seagate ST3500320AS HDDs. They have been working fine for two weeks. So it looks like WD MyBook should be avoided by FreeBSD users. From owner-freebsd-usb@FreeBSD.ORG Mon Mar 3 22:22:47 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD2351065672 for ; Mon, 3 Mar 2008 22:22:47 +0000 (UTC) (envelope-from Charlie.Svahnberg@bth.se) Received: from stafffront1.bth.se (stafffront1.bth.se [194.47.129.28]) by mx1.freebsd.org (Postfix) with ESMTP id 5E5B98FC22 for ; Mon, 3 Mar 2008 22:22:47 +0000 (UTC) (envelope-from Charlie.Svahnberg@bth.se) Received: by stafffront1.bth.se (Postfix, from userid 102) id C05541C519; Mon, 3 Mar 2008 23:00:58 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on stafffront1.bth.se X-Spam-Level: X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.2.3 Received: from localhost (localhost [127.0.0.1]) by stafffront1.bth.se (Postfix) with ESMTP id 2D3C91C522 for ; Mon, 3 Mar 2008 23:00:48 +0100 (CET) Received: from stafffront1.bth.se ([127.0.0.1]) by localhost (stafffront1.bth.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XlV7x22BH7kU for ; Mon, 3 Mar 2008 23:00:48 +0100 (CET) Received: from paris.bth.se (paris.bth.se [194.47.129.25]) by stafffront1.bth.se (Postfix) with ESMTP id 0871F1C520 for ; Mon, 3 Mar 2008 23:00:48 +0100 (CET) Received: from [194.47.135.27] ([194.47.135.27]) by paris.bth.se (Lotus Domino Release 7.0.3) with ESMTP id 2008030323004681-3082 ; Mon, 3 Mar 2008 23:00:46 +0100 Message-ID: <47CC7271.6070305@bth.se> Date: Mon, 03 Mar 2008 22:49:37 +0100 From: Charlie Svahnberg User-Agent: Thunderbird 2.0.0.9 (X11/20071119) MIME-Version: 1.0 To: freebsd-usb@freebsd.org X-MIMETrack: Itemize by SMTP Server on Paris/Server/BTH(Release 7.0.3|September 26, 2007) at 2008-03-03 23:00:46, Serialize by Router on Paris/Server/BTH(Release 7.0.3|September 26, 2007) at 2008-03-03 23:00:48, Serialize complete at 2008-03-03 23:00:48 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed Subject: Installing freebsd from USB memory (solution for HP Proliant dl145) 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: Mon, 03 Mar 2008 22:22:47 -0000 Background ---------- We wanted to install freebsd from usb, to start with, on a HP ProLiant DL145 G3 (Opteron, SATA). This machine is delivered without cd-drive or floppy, and we did not have the energy to a) temporarily install a cd-drive b) configure our DHCP-server installation via PXEboot. Initial Approach ---------------- Tools used: - Host computer: i386 (Intel(R) Pentium(R) 4 CPU 1.60GHz) with FreeBSD 6.3-RELEASE - Target computer: HP ProLiant DL145 G3 (Opteron, SATA) with Phoenix TrustedCore as BIOS - 4Gb Sandisk Cruzer Micro U3 (with U3 uninstalled) - iso2usb script by Kernel Saunders, to "transform" an iso install image to a bootable disk image. (The script can be found at bsdforums.org) - Iso images: -- 6.3-RELEASE-amd64-bootonly.iso -- 7.0-RELEASE-amd64-bootonly.iso Procedure: - Insert usb memory on host computer, turns up as da0 # iso2usb 6.3-RELEASE-amd64-bootonly.iso # dd if=usbimg.xyz123 of=/dev/da0 bs=1m - Move usb memory to target computer - Reboot/start (BIOS identifies USB memory as the first harddisk (note: NOT "removable device") Result: - "error 128 lba 0" is printed - boot2 seems to run, but fails to load loader or kernel with an error something like: "no /boot/kernel/kernel error 128" Guess1: - The image written to the usb memory was bad, or we did a misstake in the procedure. -- Tested successfully to boot from the USB on another machine with Intel Quad-Core (MB: MSI P35 NEO2-FIR). - Conclusion: Image and procedure is ok. Guess2: - Using bootstrap code for i386 (installed by bsdlabel in iso2usb) for an amd64 image. -- Modified the iso2usb script to use the bootstrap code from the iso-image. # diff iso2usb_orig.sh iso2usb_mod.sh < bsdlabel -w -B ${usbmd} || exit 1 -- > bsdlabel -w -B -b ${iso2usbtmp}/iso/boot/boot ${usbmd} || exit 1 # -- Same result as earlier, i.e. boot2 can not find loader or kernel. Guess3: - BIOS and Freebsd do not agree on how the disks are numbered. - Freebsd identifies the usb memory as a SCSI disk, and according to the freebsd handbook boot2 is depending on BIOS support in order to continue. - No support in BIOS for SCSI -> Not possible to load kernel from usb memory. - (We did not investigate further why the Quad core machine worked) Solution -------- - Burned cd with netbsd (amd64cd-4.0.iso) - Booted from cd on the Quad core machine. -- Performed standard installation of netbsd to the usb memory (sd0) - Mounted usb memory on the host computer: -- Copy the usbimg.xyz123 files to the usb memory - Insert usb memory on target computer. -- Reboot (from usb memory) --- Netbsd boots fine --- We copied the images created earlier to the SATA disk. # dd if=usbimg.xyz123 of=/dev/wd0 bs=1m -- Reboot (and remove usb memory) --- Freebsd7.0 install boots fine from the SATA disk. --- In sysinstall we did the normal installation operations... --- ...including (re)partitioning of the SATA-disk. --- (Since root is mfs-mounted, this should not be a problem) --- Installed via FTP. -- After sysinstall completed we did a final reboot and... -- ...it worked! We now have freebsd7.0 installed from usb on our HP ProLiant DL145 G3 Post-note --------- We tried the same approach for another machine, a HP ProLiant DL140 G2 (Xeon, SATA), but this time netbsd does not boot properly. On this machine another BIOS from Phoenix is used, the usb memory is listed under "removable devices" and not under "hard disks". Maybe we will play around more to get this machine to boot netbsd/freebsd from usb memory (but this machine has a cd-drive and PXE-boot configured, so it is not so likely that we will spend very much time on this issue). Regards, /Charlie Svahnberg & Johan Zackrisson -- +----------------------= School of Engineering =----------------------+ |Blekinge Institute of Technology, Box 520, SE-372 25 Ronneby, Sweden | |Telephone: +46 457 385835 Telefax: +46 457 271 25 | |Charlie.Svahnberg@bth.se http://www.tek.bth.se | +---------------------------------------------------------------------+ From owner-freebsd-usb@FreeBSD.ORG Tue Mar 4 09:35:52 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFBA7106566C for ; Tue, 4 Mar 2008 09:35:52 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from hosted.kievnet.com (hosted.kievnet.com [193.138.144.10]) by mx1.freebsd.org (Postfix) with ESMTP id B95218FC21 for ; Tue, 4 Mar 2008 09:35:52 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from [91.193.172.111] by hosted.kievnet.com with esmtpa (Exim 4.62) (envelope-from ) id 1JWSUw-000Hpn-RP; Tue, 04 Mar 2008 10:27:42 +0200 Message-ID: <47CD07F7.2080001@icyb.net.ua> Date: Tue, 04 Mar 2008 10:27:35 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.9 (X11/20071208) MIME-Version: 1.0 To: Anish Mistry References: <200803031654.31592.amistry@am-productions.biz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: Suspend/Sleep/Stop USB device 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: Tue, 04 Mar 2008 09:35:53 -0000 Anish, I once played with a similar idea - to power off a USB port once a UMASS device (attached to it) is unmounted, similarly to how windows does it. I haven't reached any completely satisfactory results, but I got some results. I have a very faint memory of that now, but I think that either of the following two should work for a port of a USB hub device: usbd_clear_port_feature(dev, port, UHF_PORT_ENABLE); usbd_clear_port_feature(dev, port, UHF_PORT_POWER); I actually issued the request from user-land, but I think that a proper solution would be to add a new ioctl for this purpose and a proper handling of it in usb/uhub. This is a snippet of the userland code that I still have around: if ((fd = open(device_name, O_RDWR, 0)) < 0) { error("%s", device_name); exit(EXIT_FAILURE); } /*==============================================================*/ ctlreq.ucr_addr = 1; /* XXX */ ctlreq.ucr_request.bmRequestType = UT_WRITE_CLASS_OTHER; ctlreq.ucr_request.bRequest = UR_CLEAR_FEATURE; USETW(ctlreq.ucr_request.wValue, UHF_PORT_POWER); //USETW(ctlreq.ucr_request.wValue, UHF_PORT_ENABLE); USETW(ctlreq.ucr_request.wIndex, 8); /* XXX */ USETW(ctlreq.ucr_request.wLength, 0); ctlreq.ucr_data = 0; ctlreq.ucr_flags = 0; ctlreq.ucr_actlen = 0; /*==============================================================*/ if (ioctl(fd, USB_REQUEST, &ctlreq) != 0) { error("ioctl USB_REQUEST"); close(fd); exit(EXIT_FAILURE); } -- Andriy Gapon From owner-freebsd-usb@FreeBSD.ORG Wed Mar 5 09:06:32 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECE82106566C for ; Wed, 5 Mar 2008 09:06:32 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.freebsd.org (Postfix) with ESMTP id 8DD838FC17 for ; Wed, 5 Mar 2008 09:06:32 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from [192.168.1.100] (adsl-68-250-179-2.dsl.wotnoh.ameritech.net [68.250.179.2]) (authenticated bits=0) by mail.united-ware.com (8.14.2/8.14.2) with ESMTP id m259FHF3047869 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 5 Mar 2008 04:15:18 -0500 (EST) (envelope-from amistry@am-productions.biz) From: Anish Mistry Organization: AM Productions To: freebsd-usb@freebsd.org Date: Wed, 5 Mar 2008 04:11:09 -0500 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3042565.XioZt6oEyu"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200803050411.17074.amistry@am-productions.biz> X-Virus-Scanned: ClamAV 0.91.2/6135/Wed Mar 5 01:24:05 2008 on mail.united-ware.com X-Virus-Status: Clean X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Andriy Gapon Subject: Utility to Suspend/Disable/Enable Power Off USB ports 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, 05 Mar 2008 09:06:33 -0000 --nextPart3042565.XioZt6oEyu Content-Type: multipart/mixed; boundary="Boundary-01=_tOmzHfSfSNJmvWy" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_tOmzHfSfSNJmvWy Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I've written the upower utility allows you to selectively suspend usb=20 ports. It acts similar to the Windows "Stop Removable Device"=20 process. It has only been tested on 7.0-RELEASE. WARNING: This program may eat your lunch and kick your dog. You've=20 been warned. Download and compile. fetch http://am-productions.biz/docs/upower.c gcc -o upower upower.c You will need to be root or have rw access to the uhub devices.=20 eg. /dev/usbX Use "usbdevs -v" to find the port/device to suspend. # usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),=20 Intel(0x0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),=20 Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: low speed, power 100 mA, config 1, product 0x0009 (0x0009), vendor 0x045e(0x045e), rev 1.05 Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),=20 Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, power 100 mA, config 1, Fingerprint=20 Sensor(0x2580), vendor 0x08ff(0x08ff), rev 6.23 Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),=20 Intel(0x0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb4: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),=20 Intel(0x0000), rev 1.00 port 1 powered port 2 powered port 3 addr 2: high speed, self powered, config 1, product=20 0x005a(0x005a), vendor 0x0409(0x0409), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 4 powered Controller /dev/usb5: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),=20 Intel(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 addr 2: high speed, power 320 mA, config 1, Sirius USB2.0=20 Camera(0x3343), Vimicro Corp.(0x0ac8), rev 1.00 Since my built-in USB camera draws power when not in use, I'll suspend=20 it to save battery time. # ./upower /dev/usb5 4 suspend # usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),=20 Intel(0x0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),=20 Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: low speed, power 100 mA, config 1, product 0x0009 (0x0009), vendor 0x045e(0x045e), rev 1.05 Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),=20 Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, power 100 mA, config 1, Fingerprint=20 Sensor(0x2580), vendor 0x08ff(0x08ff), rev 6.23 Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),=20 Intel(0x0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb4: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),=20 Intel(0x0000), rev 1.00 port 1 powered port 2 powered port 3 addr 2: high speed, self powered, config 1, product=20 0x005a(0x005a), vendor 0x0409(0x0409), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 4 powered Controller /dev/usb5: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),=20 Intel(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 addr 2: high speed, power 320 mA, config 1, product 0x3343 (0x3343), vendor 0x0ac8(0x0ac8), rev 1.00 Thanks to Andriy Gapon for pointing me in the correct direction. =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --Boundary-01=_tOmzHfSfSNJmvWy-- --nextPart3042565.XioZt6oEyu Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBHzmOtxqA5ziudZT0RAsHdAJ9NZi70JvRFa6dXN+Ev/Y4nBJFhQACg4D8s cr7A9oeRWxoMWf7tv1ez8qc= =Ml36 -----END PGP SIGNATURE----- --nextPart3042565.XioZt6oEyu-- From owner-freebsd-usb@FreeBSD.ORG Thu Mar 6 12:20:01 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DD3B106566B for ; Thu, 6 Mar 2008 12:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 072F88FC14 for ; Thu, 6 Mar 2008 12:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m26CK0gU082507 for ; Thu, 6 Mar 2008 12:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m26CK0nl082506; Thu, 6 Mar 2008 12:20:00 GMT (envelope-from gnats) Resent-Date: Thu, 6 Mar 2008 12:20:00 GMT Resent-Message-Id: <200803061220.m26CK0nl082506@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, Björn König Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 438051065671 for ; Thu, 6 Mar 2008 12:15:22 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de (mail.smartterra.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id 06A238FC22 for ; Thu, 6 Mar 2008 12:15:21 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from home.alpha-tierchen.de (port-212-202-40-215.dynamic.qsc.de [212.202.40.215]) by mail.liberty-hosting.de (Postfix) with ESMTP id 849383EA008 for ; Thu, 6 Mar 2008 13:13:41 +0100 (CET) Received: from muhkuh.lan (muhkuh.lan [192.168.1.2]) by home.alpha-tierchen.de (Postfix) with SMTP id 8595F2888B for ; Thu, 6 Mar 2008 13:15:17 +0100 (CET) Received: by muhkuh.lan (sSMTP sendmail emulation); Thu, 6 Mar 2008 13:15:21 +0100 Message-Id: <20080306121517.8595F2888B@home.alpha-tierchen.de> Date: Thu, 6 Mar 2008 13:15:21 +0100 From: "Björn König" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/121426: [patch] [uscanner] add HP ScanJet 3570C X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Björn König List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2008 12:20:01 -0000 >Number: 121426 >Category: usb >Synopsis: [patch] [uscanner] add HP ScanJet 3570C >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Mar 06 12:20:00 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Björn König >Release: >Organization: >Environment: >Description: The HP ScanJet 3570C scanner works well with SANE using uscanner. Add the necessary bits. >How-To-Repeat: >Fix: --- scanjet3570c.diff begins here --- --- src/sys/dev/usb/usbdevs 2008-01-08 00:12:45.000000000 +0100 +++ src/sys/dev/usb/usbdevs 2008-03-06 11:59:28.000000000 +0100 @@ -1374,6 +1374,7 @@ product HP 930C 0x1204 DeskJet 930c product HP P2000U 0x1801 Inkjet P-2000U product HP 640C 0x2004 DeskJet 640c +product HP 3570C 0x2005 ScanJet 3570C product HP 4670V 0x3005 ScanJet 4670v product HP P1100 0x3102 Photosmart P1100 product HP HN210E 0x811c Ethernet HN210E --- src/sys/dev/usb/uscanner.c 2007-10-05 09:26:39.000000000 +0200 +++ src/sys/dev/usb/uscanner.c 2008-03-06 11:57:29.000000000 +0100 @@ -129,6 +129,7 @@ {{ USB_VENDOR_HP, USB_PRODUCT_HP_2200C }, 0 }, {{ USB_VENDOR_HP, USB_PRODUCT_HP_3300C }, 0 }, {{ USB_VENDOR_HP, USB_PRODUCT_HP_3400CSE }, 0 }, + {{ USB_VENDOR_HP, USB_PRODUCT_HP_3570C }, 0 }, {{ USB_VENDOR_HP, USB_PRODUCT_HP_4100C }, 0 }, {{ USB_VENDOR_HP, USB_PRODUCT_HP_4200C }, 0 }, {{ USB_VENDOR_HP, USB_PRODUCT_HP_4300C }, 0 }, --- src/share/man/man4/uscanner.4 2007-10-05 17:17:14.000000000 +0200 +++ src/share/man/man4/uscanner.4 2008-03-06 12:38:57.000000000 +0100 @@ -109,7 +109,7 @@ Hewlett Packard: Photosmart S20 .It Hewlett Packard Scanjet: 2200C, -3300C, 3400CSE, +3300C, 3400CSE, 3570C, 4100C, 4200C, 4300C, 5200C, 5300C, 5400C, 6200C, 6300C, --- scanjet3570c.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Mar 6 16:54:59 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2E521065671 for ; Thu, 6 Mar 2008 16:54:59 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe15.swip.net [212.247.155.193]) by mx1.freebsd.org (Postfix) with ESMTP id 0BAEA8FC18 for ; Thu, 6 Mar 2008 16:54:58 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.132.89] (account mc467741@c2i.net [62.113.132.89] verified) by mailfe15.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 99548870; Thu, 06 Mar 2008 17:54:57 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 6 Mar 2008 17:56:00 +0100 User-Agent: KMail/1.9.7 References: <200803050411.17074.amistry@am-productions.biz> In-Reply-To: <200803050411.17074.amistry@am-productions.biz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803061756.01227.hselasky@c2i.net> Cc: Anish Mistry , Andriy Gapon Subject: Re: Utility to Suspend/Disable/Enable Power Off USB ports 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: Thu, 06 Mar 2008 16:54:59 -0000 Hi, I think that we should have this functionality in the USB kernel like a separate IOCTL, that only takes an USB address like argument, hence every USB device in the kernel knows which is its parent HUB. There is a problem when you do a port reset, and that is that the USB device goes into the unaddressed state, and starts responding to address 0. If another device is being enumerated at the same time, this might cause problems. BTW: What are the main purposes of your program? --HPS On Wednesday 05 March 2008, Anish Mistry wrote: > I've written the upower utility allows you to selectively suspend usb > ports. It acts similar to the Windows "Stop Removable Device" > process. It has only been tested on 7.0-RELEASE. > > WARNING: This program may eat your lunch and kick your dog. You've > been warned. > > Download and compile. > > fetch http://am-productions.biz/docs/upower.c > gcc -o upower upower.c > > You will need to be root or have rw access to the uhub devices. > eg. /dev/usbX > > Use "usbdevs -v" to find the port/device to suspend. > # usbdevs -v > Controller /dev/usb0: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > port 1 powered > port 2 powered > Controller /dev/usb1: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > port 1 powered > port 2 addr 2: low speed, power 100 mA, config 1, product 0x0009 > (0x0009), vendor 0x045e(0x045e), rev 1.05 > Controller /dev/usb2: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > port 1 powered > port 2 addr 2: full speed, power 100 mA, config 1, Fingerprint > Sensor(0x2580), vendor 0x08ff(0x08ff), rev 6.23 > Controller /dev/usb3: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > port 1 powered > port 2 powered > Controller /dev/usb4: > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > port 1 powered > port 2 powered > port 3 addr 2: high speed, self powered, config 1, product > 0x005a(0x005a), vendor 0x0409(0x0409), rev 1.00 > port 1 powered > port 2 powered > port 3 powered > port 4 powered > port 4 powered > Controller /dev/usb5: > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > port 1 powered > port 2 powered > port 3 powered > port 4 addr 2: high speed, power 320 mA, config 1, Sirius USB2.0 > Camera(0x3343), Vimicro Corp.(0x0ac8), rev 1.00 > > > Since my built-in USB camera draws power when not in use, I'll suspend > it to save battery time. > > # ./upower /dev/usb5 4 suspend From owner-freebsd-usb@FreeBSD.ORG Thu Mar 6 17:00:06 2008 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FD4E106570B for ; Thu, 6 Mar 2008 17:00:06 +0000 (UTC) (envelope-from vladimir.terziev@gbservices.biz) Received: from cat-btc.gbservices.biz (cat-btc.gbservices.biz [83.228.119.50]) by mx1.freebsd.org (Postfix) with ESMTP id 483608FC2D for ; Thu, 6 Mar 2008 17:00:06 +0000 (UTC) (envelope-from vladimir.terziev@gbservices.biz) Received: from cat-btc.gbservices.biz (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id C56BC1FA032 for ; Thu, 6 Mar 2008 17:36:41 +0100 (CET) Received: from fs.gbs.gbdom.com (fs.gbs.gbdom.com [192.168.2.244]) by cat.gbs.gbdom.com (Postfix) with ESMTP id AB1591FA037 for ; Thu, 6 Mar 2008 17:36:41 +0100 (CET) Received: from localhost (localhost.gbs.gbdom.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 6195A28595 for ; Thu, 6 Mar 2008 17:36:41 +0100 (CET) Received: from daemon.gbs.gbdom.com (daemon.gbs.gbdom.com [192.168.2.104]) by fs.gbs.gbdom.com (Postfix) with SMTP id ED10728590 for ; Thu, 6 Mar 2008 17:36:40 +0100 (CET) Date: Thu, 6 Mar 2008 18:36:41 +0200 From: Vladimir Terziev To: freebsd-usb@FreeBSD.org Message-Id: <20080306183641.c941b83a.vlady@gbservices.biz> Organization: GB Services Ltd. X-Mailer: Sylpheed 2.4.7 (GTK+ 2.6.4; i386-unknown-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV GBS-F X-Virus-Scanned: ClamAV GBS-C Cc: Subject: USB Smart card reader/writer problem 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: Thu, 06 Mar 2008 17:00:06 -0000 Hi, i have ACS ACR38T Smart card reader/write device (idVendor=0x072f, idProduct=0x90cc), which is an USB stick. I try to make it to work under FreeBSD (trys have been done on 5.4, 5.5 and 6.2). The device has 3 endpoints -- interrupt-in, configured as /dev/ugenX.1 and bulk-in/bulk-out, configured as /dev/ugenX.2. Neither the driver from openct-0.6.14 port nor the driver from ccid-1.3.5 port work for the device. The communication with the device gets stuck on BULK-OUT operations. write(2) calls to /dev/ugenX.2 hang forever despite the timeout set with USB_SET_TIMEOUT. The device has been tested to work under Windoze, so as general, it's not broken, but just irresponsive. Could someone give me some clues about the nature of the problem ? Thanks in advance! Vladimir From owner-freebsd-usb@FreeBSD.ORG Thu Mar 6 17:06:44 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09E8E106566B for ; Thu, 6 Mar 2008 17:06:44 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.swip.net [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id 93C578FC17 for ; Thu, 6 Mar 2008 17:06:43 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.132.89] (account mc467741@c2i.net [62.113.132.89] verified) by mailfe14.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 99607525; Thu, 06 Mar 2008 18:06:41 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 6 Mar 2008 18:07:44 +0100 User-Agent: KMail/1.9.7 References: <20080306183641.c941b83a.vlady@gbservices.biz> In-Reply-To: <20080306183641.c941b83a.vlady@gbservices.biz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803061807.46113.hselasky@c2i.net> Cc: Subject: Re: USB Smart card reader/writer problem 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: Thu, 06 Mar 2008 17:06:44 -0000 On Thursday 06 March 2008, Vladimir Terziev wrote: > Hi, > > i have ACS ACR38T Smart card reader/write device (idVendor=0x072f, > idProduct=0x90cc), which is an USB stick. I try to make it to work under > FreeBSD (trys have been done on 5.4, 5.5 and 6.2). > > The device has 3 endpoints -- interrupt-in, configured as /dev/ugenX.1 and > bulk-in/bulk-out, configured as /dev/ugenX.2. > > Neither the driver from openct-0.6.14 port nor the driver from ccid-1.3.5 > port work for the device. > > The communication with the device gets stuck on BULK-OUT operations. > write(2) calls to /dev/ugenX.2 hang forever despite the timeout set with > USB_SET_TIMEOUT. > > The device has been tested to work under Windoze, so as general, it's not > broken, but just irresponsive. > > Could someone give me some clues about the nature of the problem ? > > Thanks in advance! > > Vladimir Hi, Some USB devices have problems with Clear Stall. FreeBSD usually clears the stall on the endpoints before starting to use them. Some devices empty the fifo when receiving this clear stall, and does not requeue the data. That is why your device most likely does not work. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Mar 6 17:16:47 2008 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECABE1065673 for ; Thu, 6 Mar 2008 17:16:47 +0000 (UTC) (envelope-from vladimir.terziev@gbservices.biz) Received: from cat-btc.gbservices.biz (cat-btc.gbservices.biz [83.228.119.50]) by mx1.freebsd.org (Postfix) with ESMTP id A51AD8FC1A for ; Thu, 6 Mar 2008 17:16:46 +0000 (UTC) (envelope-from vladimir.terziev@gbservices.biz) Received: from cat-btc.gbservices.biz (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id E3F891FA03A for ; Thu, 6 Mar 2008 17:44:07 +0100 (CET) Received: from fs.gbs.gbdom.com (fs.gbs.gbdom.com [192.168.2.244]) by cat.gbs.gbdom.com (Postfix) with ESMTP id C97AC1FA037 for ; Thu, 6 Mar 2008 17:44:07 +0100 (CET) Received: from localhost (localhost.gbs.gbdom.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 7C6AC28591 for ; Thu, 6 Mar 2008 17:44:07 +0100 (CET) Received: from daemon.gbs.gbdom.com (daemon.gbs.gbdom.com [192.168.2.104]) by fs.gbs.gbdom.com (Postfix) with SMTP id 0DA2E28590 for ; Thu, 6 Mar 2008 17:44:07 +0100 (CET) Date: Thu, 6 Mar 2008 18:44:07 +0200 From: Vladimir Terziev To: freebsd-usb@FreeBSD.org Message-Id: <20080306184407.750408c7.vlady@gbservices.biz> Organization: GB Services Ltd. X-Mailer: Sylpheed 2.4.7 (GTK+ 2.6.4; i386-unknown-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV GBS-F X-Virus-Scanned: ClamAV GBS-C Cc: Subject: USB Smart card reader/writer problem 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: Thu, 06 Mar 2008 17:16:48 -0000 Hi, i have ACS ACR38T Smart card reader/write device (idVendor=0x072f, idProduct=0x90cc), which is an USB stick. I try to make it to work under FreeBSD (trys have been done on 5.4, 5.5 and 6.2). The device has 3 endpoints -- interrupt-in, configured as /dev/ugenX.1 and bulk-in/bulk-out, configured as /dev/ugenX.2. Neither the driver from openct-0.6.14 port nor the driver from ccid-1.3.5 port work for the device. The communication with the device gets stuck on BULK-OUT operations. write(2) calls to /dev/ugenX.2 hang forever despite the timeout set with USB_SET_TIMEOUT. The device has been tested to work under Windoze, so as general, it's not broken, but just irresponsive. Could someone give me some clues about the nature of the problem ? Thanks in advance! Vladimir From owner-freebsd-usb@FreeBSD.ORG Thu Mar 6 17:18:39 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B991106566C for ; Thu, 6 Mar 2008 17:18:39 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.freebsd.org (Postfix) with ESMTP id 3A73E8FC13 for ; Thu, 6 Mar 2008 17:18:38 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from [192.168.1.100] (adsl-68-250-179-2.dsl.wotnoh.ameritech.net [68.250.179.2]) (authenticated bits=0) by mail.united-ware.com (8.14.2/8.14.2) with ESMTP id m26HRW1W098460 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 6 Mar 2008 12:27:32 -0500 (EST) (envelope-from amistry@am-productions.biz) From: Anish Mistry Organization: AM Productions To: Hans Petter Selasky Date: Thu, 6 Mar 2008 12:23:09 -0500 User-Agent: KMail/1.9.7 References: <200803050411.17074.amistry@am-productions.biz> <200803061756.01227.hselasky@c2i.net> In-Reply-To: <200803061756.01227.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6940533.Dvsors8nWP"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200803061223.25223.amistry@am-productions.biz> X-Virus-Scanned: ClamAV 0.91.2/6146/Wed Mar 5 23:57:45 2008 on mail.united-ware.com X-Virus-Status: Clean Cc: Andriy Gapon , freebsd-usb@freebsd.org Subject: Re: Utility to Suspend/Disable/Enable Power Off USB ports 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: Thu, 06 Mar 2008 17:18:39 -0000 --nextPart6940533.Dvsors8nWP Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 06 March 2008, Hans Petter Selasky wrote: > Hi, > > I think that we should have this functionality in the USB kernel > like a separate IOCTL, that only takes an USB address like > argument, hence every USB device in the kernel knows which is its > parent HUB. Yes, this would be ideal. > There is a problem when you do a port reset, and that is that the > USB device goes into the unaddressed state, and starts responding > to address 0. If another device is being enumerated at the same > time, this might cause problems. Hmmm...Any suggestions? > > BTW: What are the main purposes of your program? To shutoff a USB device so that it knows to stop. See my email=20 earlier to the list entitled "Suspend/Sleep/Stop USB device". Basically my built-in camera was getting hot and drawing power. I=20 needed a way to shut it down as not to waste power. > > --HPS > > On Wednesday 05 March 2008, Anish Mistry wrote: > > I've written the upower utility allows you to selectively suspend > > usb ports. It acts similar to the Windows "Stop Removable > > Device" process. It has only been tested on 7.0-RELEASE. > > > > WARNING: This program may eat your lunch and kick your dog.=20 > > You've been warned. > > > > Download and compile. > > > > fetch http://am-productions.biz/docs/upower.c > > gcc -o upower upower.c > > > > You will need to be root or have rw access to the uhub devices. > > eg. /dev/usbX > > > > Use "usbdevs -v" to find the port/device to suspend. > > # usbdevs -v > > Controller /dev/usb0: > > addr 1: full speed, self powered, config 1, UHCI root > > hub(0x0000), Intel(0x0000), rev 1.00 > > port 1 powered > > port 2 powered > > Controller /dev/usb1: > > addr 1: full speed, self powered, config 1, UHCI root > > hub(0x0000), Intel(0x0000), rev 1.00 > > port 1 powered > > port 2 addr 2: low speed, power 100 mA, config 1, product 0x0009 > > (0x0009), vendor 0x045e(0x045e), rev 1.05 > > Controller /dev/usb2: > > addr 1: full speed, self powered, config 1, UHCI root > > hub(0x0000), Intel(0x0000), rev 1.00 > > port 1 powered > > port 2 addr 2: full speed, power 100 mA, config 1, Fingerprint > > Sensor(0x2580), vendor 0x08ff(0x08ff), rev 6.23 > > Controller /dev/usb3: > > addr 1: full speed, self powered, config 1, UHCI root > > hub(0x0000), Intel(0x0000), rev 1.00 > > port 1 powered > > port 2 powered > > Controller /dev/usb4: > > addr 1: high speed, self powered, config 1, EHCI root > > hub(0x0000), Intel(0x0000), rev 1.00 > > port 1 powered > > port 2 powered > > port 3 addr 2: high speed, self powered, config 1, product > > 0x005a(0x005a), vendor 0x0409(0x0409), rev 1.00 > > port 1 powered > > port 2 powered > > port 3 powered > > port 4 powered > > port 4 powered > > Controller /dev/usb5: > > addr 1: high speed, self powered, config 1, EHCI root > > hub(0x0000), Intel(0x0000), rev 1.00 > > port 1 powered > > port 2 powered > > port 3 powered > > port 4 addr 2: high speed, power 320 mA, config 1, Sirius USB2.0 > > Camera(0x3343), Vimicro Corp.(0x0ac8), rev 1.00 > > > > > > Since my built-in USB camera draws power when not in use, I'll > > suspend it to save battery time. > > > > # ./upower /dev/usb5 4 suspend =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --nextPart6940533.Dvsors8nWP Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBH0Ch+xqA5ziudZT0RAqGJAKDGzMfSKx9VXrkg2J+7+NryQu9wYwCfSIc4 ButiVhY7UAS+YjgKZmCZ3Rc= =l6wg -----END PGP SIGNATURE----- --nextPart6940533.Dvsors8nWP-- From owner-freebsd-usb@FreeBSD.ORG Thu Mar 6 18:10:37 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F071106566B for ; Thu, 6 Mar 2008 18:10:37 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.tele2.se [212.247.155.1]) by mx1.freebsd.org (Postfix) with ESMTP id 897158FC2E for ; Thu, 6 Mar 2008 18:10:36 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.132.89] (account mc467741@c2i.net [62.113.132.89] verified) by mailfe09.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 667421555; Thu, 06 Mar 2008 18:55:35 +0100 From: Hans Petter Selasky To: Anish Mistry Date: Thu, 6 Mar 2008 18:56:38 +0100 User-Agent: KMail/1.9.7 References: <200803050411.17074.amistry@am-productions.biz> <200803061756.01227.hselasky@c2i.net> <200803061223.25223.amistry@am-productions.biz> In-Reply-To: <200803061223.25223.amistry@am-productions.biz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803061856.39301.hselasky@c2i.net> Cc: Andriy Gapon , freebsd-usb@freebsd.org Subject: Re: Utility to Suspend/Disable/Enable Power Off USB ports 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: Thu, 06 Mar 2008 18:10:37 -0000 Hi Anish, I think that when you re-enable the port the kernel should do a re-enumeration. Also when you suspend/resume a device, the "suspend" and "resume" methods of the device should get called. I will have a look at it. --HPS On Thursday 06 March 2008, Anish Mistry wrote: > On Thursday 06 March 2008, Hans Petter Selasky wrote: > > Hi, > > > > I think that we should have this functionality in the USB kernel > > like a separate IOCTL, that only takes an USB address like > > argument, hence every USB device in the kernel knows which is its > > parent HUB. > > Yes, this would be ideal. > > > There is a problem when you do a port reset, and that is that the > > USB device goes into the unaddressed state, and starts responding > > to address 0. If another device is being enumerated at the same > > time, this might cause problems. > > Hmmm...Any suggestions? > > > BTW: What are the main purposes of your program? > > To shutoff a USB device so that it knows to stop. See my email > earlier to the list entitled "Suspend/Sleep/Stop USB device". > Basically my built-in camera was getting hot and drawing power. I > needed a way to shut it down as not to waste power. > > > --HPS > > > > On Wednesday 05 March 2008, Anish Mistry wrote: > > > I've written the upower utility allows you to selectively suspend > > > usb ports. It acts similar to the Windows "Stop Removable > > > Device" process. It has only been tested on 7.0-RELEASE. > > > > > > WARNING: This program may eat your lunch and kick your dog. > > > You've been warned. > > > > > > Download and compile. > > > > > > fetch http://am-productions.biz/docs/upower.c > > > gcc -o upower upower.c > > > > > > You will need to be root or have rw access to the uhub devices. > > > eg. /dev/usbX > > > > > > Use "usbdevs -v" to find the port/device to suspend. > > > # usbdevs -v > > > Controller /dev/usb0: > > > addr 1: full speed, self powered, config 1, UHCI root > > > hub(0x0000), Intel(0x0000), rev 1.00 > > > port 1 powered > > > port 2 powered > > > Controller /dev/usb1: > > > addr 1: full speed, self powered, config 1, UHCI root > > > hub(0x0000), Intel(0x0000), rev 1.00 > > > port 1 powered > > > port 2 addr 2: low speed, power 100 mA, config 1, product 0x0009 > > > (0x0009), vendor 0x045e(0x045e), rev 1.05 > > > Controller /dev/usb2: > > > addr 1: full speed, self powered, config 1, UHCI root > > > hub(0x0000), Intel(0x0000), rev 1.00 > > > port 1 powered > > > port 2 addr 2: full speed, power 100 mA, config 1, Fingerprint > > > Sensor(0x2580), vendor 0x08ff(0x08ff), rev 6.23 > > > Controller /dev/usb3: > > > addr 1: full speed, self powered, config 1, UHCI root > > > hub(0x0000), Intel(0x0000), rev 1.00 > > > port 1 powered > > > port 2 powered > > > Controller /dev/usb4: > > > addr 1: high speed, self powered, config 1, EHCI root > > > hub(0x0000), Intel(0x0000), rev 1.00 > > > port 1 powered > > > port 2 powered > > > port 3 addr 2: high speed, self powered, config 1, product > > > 0x005a(0x005a), vendor 0x0409(0x0409), rev 1.00 > > > port 1 powered > > > port 2 powered > > > port 3 powered > > > port 4 powered > > > port 4 powered > > > Controller /dev/usb5: > > > addr 1: high speed, self powered, config 1, EHCI root > > > hub(0x0000), Intel(0x0000), rev 1.00 > > > port 1 powered > > > port 2 powered > > > port 3 powered > > > port 4 addr 2: high speed, power 320 mA, config 1, Sirius USB2.0 > > > Camera(0x3343), Vimicro Corp.(0x0ac8), rev 1.00 > > > > > > > > > Since my built-in USB camera draws power when not in use, I'll > > > suspend it to save battery time. > > > > > > # ./upower /dev/usb5 4 suspend From owner-freebsd-usb@FreeBSD.ORG Thu Mar 6 21:46:38 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A03D11065704 for ; Thu, 6 Mar 2008 21:46:38 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.9]) by mx1.freebsd.org (Postfix) with ESMTP id 7FDBE8FC28 for ; Thu, 6 Mar 2008 21:46:38 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 2047 invoked from network); 6 Mar 2008 21:46:37 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 6 Mar 2008 21:46:37 -0000 Message-ID: <47D064C0.7030807@chuckr.org> Date: Thu, 06 Mar 2008 16:40:16 -0500 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: freebsd-usb@freebsd.org X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: UC-Logic Tablet update 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: Thu, 06 Mar 2008 21:46:38 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I thought I would give an update as to where things stand, so anyone who recognizes me doing something like running into a brick wall could shout something appropriate at me. I'd forgotten that I needed to look at the Xinput before I jumped off on the USB driver. No huge problem, because while I had already begun coding, I didn't lose all that much. I tried to find any other graphic tablet that might be compatible, but it looks like a washout, but I did see via google several places referring to the WP8060 as the Superpen, so that's what I think I'll call it, it makes me smile. There's a SF project called LinuxWacom which is writing a driver )bth FreeBSD, as serial only, and Linux, serial or USB) for the Wacom Tablet, and this includes the Xinput driver, so I think I can probably use their code as a jumping off point. I asked their permission on this, maybe they won't take that too badly, which would be great. On reading the X.org site, it appears that Dbus is also involved, at lesat in a minor way, so I need to look in that direction also. This should prove easier that the Xinput stuff, which seems to be singularly undocumented. Anyone who wants to contribut on either the dbus part of the Xinput part is welcome, but I am not giving up the USB part, I have given too much to that already, I'm not gonna share that. Thanks for the interest, I wouldn't be so far without all the useful hints I've gotten so far. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH0GTAz62J6PPcoOkRAhV+AJ9x9rw4VJuy6jCuzXd852s3eB0oNwCfXYF6 ElF2VFXSVPFKUlfuwa8LlTo= =7gNa -----END PGP SIGNATURE----- From owner-freebsd-usb@FreeBSD.ORG Fri Mar 7 08:35:49 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16B3F1065675 for ; Fri, 7 Mar 2008 08:35:49 +0000 (UTC) (envelope-from vladimir.terziev@gbservices.biz) Received: from cat-btc.gbservices.biz (cat-btc.gbservices.biz [83.228.119.50]) by mx1.freebsd.org (Postfix) with ESMTP id C2B228FC14 for ; Fri, 7 Mar 2008 08:35:48 +0000 (UTC) (envelope-from vladimir.terziev@gbservices.biz) Received: from cat-btc.gbservices.biz (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 2BA3A1FA037; Fri, 7 Mar 2008 09:35:47 +0100 (CET) Received: from fs.gbs.gbdom.com (fs.gbs.gbdom.com [192.168.2.244]) by cat.gbs.gbdom.com (Postfix) with ESMTP id 0CEA01FA032; Fri, 7 Mar 2008 09:35:47 +0100 (CET) Received: from localhost (localhost.gbs.gbdom.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 995EC28591; Fri, 7 Mar 2008 09:35:46 +0100 (CET) Received: from daemon.gbs.gbdom.com (daemon.gbs.gbdom.com [192.168.2.104]) by fs.gbs.gbdom.com (Postfix) with SMTP id 4C39928590; Fri, 7 Mar 2008 09:35:46 +0100 (CET) Date: Fri, 7 Mar 2008 10:35:46 +0200 From: Vladimir Terziev To: Hans Petter Selasky Message-Id: <20080307103546.799d3e0d.vlady@gbservices.biz> In-Reply-To: <200803061807.46113.hselasky@c2i.net> References: <20080306183641.c941b83a.vlady@gbservices.biz> <200803061807.46113.hselasky@c2i.net> Organization: GB Services Ltd. X-Mailer: Sylpheed 2.4.7 (GTK+ 2.6.4; i386-unknown-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV GBS-F X-Virus-Scanned: ClamAV GBS-C Cc: freebsd-usb@freebsd.org Subject: Re: USB Smart card reader/writer problem 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: Fri, 07 Mar 2008 08:35:49 -0000 On Thu, 6 Mar 2008 18:07:44 +0100 Hans Petter Selasky wrote: > On Thursday 06 March 2008, Vladimir Terziev wrote: > > Hi, > > > > i have ACS ACR38T Smart card reader/write device (idVendor=0x072f, > > idProduct=0x90cc), which is an USB stick. I try to make it to work under > > FreeBSD (trys have been done on 5.4, 5.5 and 6.2). > > > > The device has 3 endpoints -- interrupt-in, configured as /dev/ugenX.1 and > > bulk-in/bulk-out, configured as /dev/ugenX.2. > > > > Neither the driver from openct-0.6.14 port nor the driver from ccid-1.3.5 > > port work for the device. > > > > The communication with the device gets stuck on BULK-OUT operations. > > write(2) calls to /dev/ugenX.2 hang forever despite the timeout set with > > USB_SET_TIMEOUT. > > > > The device has been tested to work under Windoze, so as general, it's not > > broken, but just irresponsive. > > > > Could someone give me some clues about the nature of the problem ? > > > > Thanks in advance! > > > > Vladimir > > Hi, > > Some USB devices have problems with Clear Stall. FreeBSD usually clears the > stall on the endpoints before starting to use them. Some devices empty the > fifo when receiving this clear stall, and does not requeue the data. That is > why your device most likely does not work. > > --HPS Is there something i could do in order to workaround such a behaviour ? Vladimir From owner-freebsd-usb@FreeBSD.ORG Fri Mar 7 15:03:15 2008 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 312F8106566C for ; Fri, 7 Mar 2008 15:03:15 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id EDE5A8FC19 for ; Fri, 7 Mar 2008 15:03:14 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id m27EPId4022199 for ; Fri, 7 Mar 2008 07:25:19 -0700 Received: from localhost (unknown [127.0.0.1]) by mail.semihalf.com (Postfix) with ESMTP id BEECC142B9 for ; Fri, 7 Mar 2008 15:35:22 +0100 (CET) Received: from mail.semihalf.com ([127.0.0.1]) by localhost (mail.semihalf.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20136-06 for ; Fri, 7 Mar 2008 15:35:21 +0100 (CET) Message-ID: <47D15050.3010809@semihalf.com> Date: Fri, 07 Mar 2008 15:25:20 +0100 From: Rafal Jaworowski MIME-Version: 1.0 To: usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at semihalf.com Cc: Subject: Workarounds in generic EHCI code 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: Fri, 07 Mar 2008 15:03:15 -0000 Greetings, I'd like to hear comments on the proper way of handling non-standard behaviour of a host controller when a workaround needs to be aplied at the shared code level. In the following I followed an example of existing VIA/ATI chip workaround: http://people.freebsd.org/~raj/patches/misc/usb-workarounds.diff The respective flags are potentially set in platform-specific attachment driver code, which knows if they apply etc. Does anybody see a better way to handle such cases? Rafal From owner-freebsd-usb@FreeBSD.ORG Fri Mar 7 15:16:28 2008 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC45F106566C for ; Fri, 7 Mar 2008 15:16:28 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A25DB8FC15 for ; Fri, 7 Mar 2008 15:16:28 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m27FEVc6036680; Fri, 7 Mar 2008 08:14:31 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 07 Mar 2008 08:15:02 -0700 (MST) Message-Id: <20080307.081502.-116098145.imp@bsdimp.com> To: raj@semihalf.com From: "M. Warner Losh" In-Reply-To: <47D15050.3010809@semihalf.com> References: <47D15050.3010809@semihalf.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org Subject: Re: Workarounds in generic EHCI code 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: Fri, 07 Mar 2008 15:16:29 -0000 In message: <47D15050.3010809@semihalf.com> Rafal Jaworowski writes: : Greetings, : : I'd like to hear comments on the proper way of handling non-standard behaviour : of a host controller when a workaround needs to be aplied at the shared code : level. In the following I followed an example of existing VIA/ATI chip workaround: : : http://people.freebsd.org/~raj/patches/misc/usb-workarounds.diff : : The respective flags are potentially set in platform-specific attachment : driver code, which knows if they apply etc. : : Does anybody see a better way to handle such cases? This seems fine, but... +#define EHCI_SCFLG_USBMODEBUG 0x0003 /* workaround for Marvell 88F5281 chipsets */ +#define EHCI_SCFLG_FORCESPEED 0x0004 /* workaround for Marvell chipsets */ +#define EHCI_SCFLG_NORESTERM 0x0005 /* don't terminate reset sequence on Marvell chipsets */ Two comments. '3' isn't a bit, so those values need to change. Second, I'd make the descriptions a little better. The first two aren't very helpful... Warner From owner-freebsd-usb@FreeBSD.ORG Fri Mar 7 15:34:05 2008 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDB581065670 for ; Fri, 7 Mar 2008 15:34:05 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id AE9FA8FC30 for ; Fri, 7 Mar 2008 15:34:05 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id m27FY1js023237; Fri, 7 Mar 2008 08:34:03 -0700 Received: from localhost (unknown [127.0.0.1]) by mail.semihalf.com (Postfix) with ESMTP id AE1C0143CA; Fri, 7 Mar 2008 16:44:06 +0100 (CET) Received: from mail.semihalf.com ([127.0.0.1]) by localhost (mail.semihalf.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03149-03; Fri, 7 Mar 2008 16:44:05 +0100 (CET) Message-ID: <47D1606D.3020506@semihalf.com> Date: Fri, 07 Mar 2008 16:34:05 +0100 From: Rafal Jaworowski MIME-Version: 1.0 To: "M. Warner Losh" References: <47D15050.3010809@semihalf.com> <20080307.081502.-116098145.imp@bsdimp.com> In-Reply-To: <20080307.081502.-116098145.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at semihalf.com Cc: usb@freebsd.org Subject: Re: Workarounds in generic EHCI code 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: Fri, 07 Mar 2008 15:34:05 -0000 M. Warner Losh wrote: > : I'd like to hear comments on the proper way of handling non-standard behaviour > : of a host controller when a workaround needs to be aplied at the shared code > : level. In the following I followed an example of existing VIA/ATI chip workaround: > : > : http://people.freebsd.org/~raj/patches/misc/usb-workarounds.diff > : > : The respective flags are potentially set in platform-specific attachment > : driver code, which knows if they apply etc. > : > : Does anybody see a better way to handle such cases? > > This seems fine, but... > > +#define EHCI_SCFLG_USBMODEBUG 0x0003 /* workaround for Marvell 88F5281 chipsets */ > +#define EHCI_SCFLG_FORCESPEED 0x0004 /* workaround for Marvell chipsets */ > +#define EHCI_SCFLG_NORESTERM 0x0005 /* don't terminate reset sequence on Marvell chipsets */ > > Two comments. '3' isn't a bit, so those values need to change. Ah, sure, thanks. > Second, I'd make the descriptions a little better. The first two > aren't very helpful... > I have more detailed descriptions in the platform code that sets this, e.g. /* * Workaround for Marvell 88F5281 integrated EHCI controller: reset of * the EHCI core clears the USBMODE register, which sets the core in * an undefined state (neither host nor agent), so it needs to be set * again for proper operation. * * Refer to errata document (p. 5.24 GL USB-2) for details. */ But maybe it really better fits in the ehic.c/ehcivar.h.. I'll try to improve this. Rafal From owner-freebsd-usb@FreeBSD.ORG Fri Mar 7 15:43:08 2008 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3CE71065671 for ; Fri, 7 Mar 2008 15:43:08 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A04538FC14 for ; Fri, 7 Mar 2008 15:43:08 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m27FesuN036947; Fri, 7 Mar 2008 08:40:54 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 07 Mar 2008 08:41:26 -0700 (MST) Message-Id: <20080307.084126.387194019.imp@bsdimp.com> To: raj@semihalf.com From: "M. Warner Losh" In-Reply-To: <47D1606D.3020506@semihalf.com> References: <47D15050.3010809@semihalf.com> <20080307.081502.-116098145.imp@bsdimp.com> <47D1606D.3020506@semihalf.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org Subject: Re: Workarounds in generic EHCI code 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: Fri, 07 Mar 2008 15:43:09 -0000 In message: <47D1606D.3020506@semihalf.com> Rafal Jaworowski writes: : M. Warner Losh wrote: : : > : I'd like to hear comments on the proper way of handling non-standard behaviour : > : of a host controller when a workaround needs to be aplied at the shared code : > : level. In the following I followed an example of existing VIA/ATI chip workaround: : > : : > : http://people.freebsd.org/~raj/patches/misc/usb-workarounds.diff : > : : > : The respective flags are potentially set in platform-specific attachment : > : driver code, which knows if they apply etc. : > : : > : Does anybody see a better way to handle such cases? : > : > This seems fine, but... : > : > +#define EHCI_SCFLG_USBMODEBUG 0x0003 /* workaround for Marvell 88F5281 chipsets */ : > +#define EHCI_SCFLG_FORCESPEED 0x0004 /* workaround for Marvell chipsets */ : > +#define EHCI_SCFLG_NORESTERM 0x0005 /* don't terminate reset sequence on Marvell chipsets */ : > : > Two comments. '3' isn't a bit, so those values need to change. : : Ah, sure, thanks. : : > Second, I'd make the descriptions a little better. The first two : > aren't very helpful... : > : : I have more detailed descriptions in the platform code that sets this, e.g. : : /* : * Workaround for Marvell 88F5281 integrated EHCI controller: reset of : * the EHCI core clears the USBMODE register, which sets the core in : * an undefined state (neither host nor agent), so it needs to be set : * again for proper operation. : * : * Refer to errata document (p. 5.24 GL USB-2) for details. : : */ : : But maybe it really better fits in the ehic.c/ehcivar.h.. I'll try to improve : this. The platform code description is good for "why it is needed." Maybe have a better "what it is" in the ehci.c/ehcivar.h code. Warner From owner-freebsd-usb@FreeBSD.ORG Fri Mar 7 17:54:45 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EE441065674 for ; Fri, 7 Mar 2008 17:54:45 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swip.net [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 041AB8FC25 for ; Fri, 7 Mar 2008 17:54:44 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.132.89] (account mc467741@c2i.net [62.113.132.89] verified) by mailfe12.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 666847685; Fri, 07 Mar 2008 18:54:43 +0100 From: Hans Petter Selasky To: Vladimir Terziev Date: Fri, 7 Mar 2008 18:55:46 +0100 User-Agent: KMail/1.9.7 References: <20080306183641.c941b83a.vlady@gbservices.biz> <200803061807.46113.hselasky@c2i.net> <20080307103546.799d3e0d.vlady@gbservices.biz> In-Reply-To: <20080307103546.799d3e0d.vlady@gbservices.biz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803071855.47520.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB Smart card reader/writer problem 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: Fri, 07 Mar 2008 17:54:45 -0000 Hi, You could search in /sys/dev/usb for xxx_pipe_open() or something like that, and remove the clear stall command from that function and the recompile your kernel and modules. --HPS On Friday 07 March 2008, Vladimir Terziev wrote: > On Thu, 6 Mar 2008 18:07:44 +0100 > > Hans Petter Selasky wrote: > > On Thursday 06 March 2008, Vladimir Terziev wrote: > > > Hi, > > > > > > i have ACS ACR38T Smart card reader/write device (idVendor=0x072f, > > > idProduct=0x90cc), which is an USB stick. I try to make it to work > > > under FreeBSD (trys have been done on 5.4, 5.5 and 6.2). > > > > > > The device has 3 endpoints -- interrupt-in, configured as /dev/ugenX.1 > > > and bulk-in/bulk-out, configured as /dev/ugenX.2. > > > > > > Neither the driver from openct-0.6.14 port nor the driver from > > > ccid-1.3.5 port work for the device. > > > > > > The communication with the device gets stuck on BULK-OUT operations. > > > write(2) calls to /dev/ugenX.2 hang forever despite the timeout set > > > with USB_SET_TIMEOUT. > > > > > > The device has been tested to work under Windoze, so as general, it's > > > not broken, but just irresponsive. > > > > > > Could someone give me some clues about the nature of the problem ? > > > > > > Thanks in advance! > > > > > > Vladimir > > > > Hi, > > > > Some USB devices have problems with Clear Stall. FreeBSD usually clears > > the stall on the endpoints before starting to use them. Some devices > > empty the fifo when receiving this clear stall, and does not requeue the > > data. That is why your device most likely does not work. > > > > --HPS > > Is there something i could do in order to workaround such a behaviour ? > > Vladimir From owner-freebsd-usb@FreeBSD.ORG Fri Mar 7 19:30:04 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BAA3106567A for ; Fri, 7 Mar 2008 19:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 17AD08FC2D for ; Fri, 7 Mar 2008 19:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m27JU3cV037726 for ; Fri, 7 Mar 2008 19:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m27JU3qB037722; Fri, 7 Mar 2008 19:30:03 GMT (envelope-from gnats) Resent-Date: Fri, 7 Mar 2008 19:30:03 GMT Resent-Message-Id: <200803071930.m27JU3qB037722@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, Ben Stuyts Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA9571065670 for ; Fri, 7 Mar 2008 19:23:11 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D9ADC8FC22 for ; Fri, 7 Mar 2008 19:23:11 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m27JK5h5004148 for ; Fri, 7 Mar 2008 19:20:05 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m27JK5Le004147; Fri, 7 Mar 2008 19:20:05 GMT (envelope-from nobody) Message-Id: <200803071920.m27JK5Le004147@www.freebsd.org> Date: Fri, 7 Mar 2008 19:20:05 GMT From: Ben Stuyts To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/121474: QUIRK: SAMSUNG HM250JI in LaCie usb harddisk 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: Fri, 07 Mar 2008 19:30:04 -0000 >Number: 121474 >Category: usb >Synopsis: QUIRK: SAMSUNG HM250JI in LaCie usb harddisk >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Mar 07 19:30:03 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Ben Stuyts >Release: 7.0-Stable >Organization: Altus-Escon-Company BV >Environment: FreeBSD mars.altus-escon.com 7.0-STABLE FreeBSD 7.0-STABLE #28: Fri Mar 7 20:02:14 CET 2008 root@mars.altus-escon.com:/usr/obj/usr/src/sys/MARS amd64 >Description: Connecting an external USB drive (LaCie 250 GB "designed by Porsche") gives lots of SYNCHRONIZE CACHE errors. After each error, the system is unresponsive for 5-10s. Problem is repeatable on two recent i386 and amd64 7.0-Stable systems. On connect: Feb 22 20:59:29 mars root: Unknown USB device: vendor 0x059f product 0x0c41 bus uhub3 Feb 22 20:59:29 mars kernel: umass1: on uhub3 Feb 22 20:59:29 mars kernel: da1 at umass-sim1 bus 1 target 0 lun 0 Feb 22 20:59:29 mars kernel: da1: Fixed Direct Access SCSI-2 device Feb 22 20:59:29 mars kernel: da1: 40.000MB/s transfers Feb 22 20:59:29 mars kernel: da1: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) One of the errors: Feb 22 21:27:41 mars kernel: (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0 Feb 22 21:27:41 mars kernel: (da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error Feb 22 21:27:41 mars kernel: (da1:umass-sim1:1:0:0): SCSI Status: Check Condition Feb 22 21:27:41 mars kernel: (da1:umass-sim1:1:0:0): ILLEGAL REQUEST asc:20,0 Feb 22 21:27:41 mars kernel: (da1:umass-sim1:1:0:0): Invalid command operation code Feb 22 21:27:41 mars kernel: (da1:umass-sim1:1:0:0): Unretryable error usbdevs -v: Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb3: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 addr 3: high speed, power 2 mA, config 1, LaCie Hard Drive USB(0x0c41), LaCie(0x059f), rev 0.00 >How-To-Repeat: Connect this drive, put a ZFS filesystem on it, and try to put some data on it. >Fix: Index: scsi_da.c =================================================================== RCS file: /home/ncvs/src/sys/cam/scsi/scsi_da.c,v retrieving revision 1.224.2.1 diff -u -r1.224.2.1 scsi_da.c --- scsi_da.c 26 Feb 2008 09:37:09 -0000 1.224.2.1 +++ scsi_da.c 7 Mar 2008 18:59:36 -0000 @@ -535,6 +535,14 @@ {T_DIRECT, SIP_MEDIA_REMOVABLE, "ChipsBnk", "USB*", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, + { + /* + * LaCie external 250GB Hard drive des by Porsche + * PR: xxxxxx + */ + {T_DIRECT, SIP_MEDIA_FIXED, "SAMSUNG", "HM250JI", "*"}, + /*quirks*/ DA_Q_NO_SYNC_CACHE + }, }; static disk_strategy_t dastrategy; >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat Mar 8 15:40:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A96771065673 for ; Sat, 8 Mar 2008 15:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 82F148FC15 for ; Sat, 8 Mar 2008 15:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m28Fe3wZ038399 for ; Sat, 8 Mar 2008 15:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m28Fe34A038392; Sat, 8 Mar 2008 15:40:03 GMT (envelope-from gnats) Date: Sat, 8 Mar 2008 15:40:03 GMT Message-Id: <200803081540.m28Fe34A038392@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Ivan Voras Cc: Subject: Re: usb/120017: [ehci] [patch] CS5536 (AMD Geode) USB 2.0 quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ivan Voras List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 15:40:03 -0000 The following reply was made to PR usb/120017; it has been noted by GNATS. From: Ivan Voras To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/120017: [ehci] [patch] CS5536 (AMD Geode) USB 2.0 quirk Date: Sat, 08 Mar 2008 16:16:31 +0100 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig68134AB1465A17A791368B6A Content-Type: multipart/mixed; boundary="------------030909040900050807080200" This is a multi-part message in MIME format. --------------030909040900050807080200 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable It seems my reply and patch got mangled in gnats, so lets try again. The = answer to the question of EHCI compliancy is Yes, for all intents and=20 purposes. The patch (improved a bit to proper set the EHCI flags) is=20 attached. --------------030909040900050807080200 Content-Type: text/plain; name="ehci_pci.c.patch.txt" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="ehci_pci.c.patch.txt" LS0tIHVzYl8vZWhjaV9wY2kuYwkyMDA4LTAxLTI2IDE4OjQyOjExLjAwMDAwMDAwMCArMDEw MAorKysgdXNiL2VoY2lfcGNpLmMJMjAwOC0wMS0yNiAyMToxNToyOC4wMDAwMDAwMDAgKzAx MDAKQEAgLTk5LDYgKzk5LDggQEAKIC8qIEFNRCAqLwogI2RlZmluZSBQQ0lfRUhDSV9ERVZJ Q0VJRF84MTExCQkweDEwMjI3NDYzCiBzdGF0aWMgY29uc3QgY2hhciAqZWhjaV9kZXZpY2Vf ODExMSA9ICJBTUQgODExMSBVU0IgMi4wIGNvbnRyb2xsZXIiOworI2RlZmluZSBQQ0lfRUhD SV9ERVZJQ0VJRF9DUzU1MzYJMHgyMDk1MTAyMgorc3RhdGljIGNvbnN0IGNoYXIgKmVoY2lf ZGV2aWNlX2NzNTUzNiA9ICJBTUQgQ1M1NTM2IChHZW9kZSkgVVNCIDIuMCBjb250cm9sbGVy IjsKIAogLyogQVRJICovCiAjZGVmaW5lIFBDSV9FSENJX0RFVklDRUlEX1NCMjAwCQkweDQz NDUxMDAyCkBAIC0yMTQsNiArMjE2LDggQEAKIAkJcmV0dXJuIChlaGNpX2RldmljZV9tNTIz OSk7CiAJY2FzZSBQQ0lfRUhDSV9ERVZJQ0VJRF84MTExOgogCQlyZXR1cm4gKGVoY2lfZGV2 aWNlXzgxMTEpOworCWNhc2UgUENJX0VIQ0lfREVWSUNFSURfQ1M1NTM2OgorCQlyZXR1cm4g KGVoY2lfZGV2aWNlX2NzNTUzNik7CiAJY2FzZSBQQ0lfRUhDSV9ERVZJQ0VJRF9TQjIwMDoK IAkJcmV0dXJuIChlaGNpX2RldmljZV9zYjIwMCk7CiAJY2FzZSBQQ0lfRUhDSV9ERVZJQ0VJ RF9TQjQwMDoKQEAgLTI5MSw4ICsyOTUsMTMgQEAKIAljYXNlIFBDSV9VU0JSRVZfUFJFXzFf MDoKIAljYXNlIFBDSV9VU0JSRVZfMV8wOgogCWNhc2UgUENJX1VTQlJFVl8xXzE6Ci0JCXNj LT5zY19idXMudXNicmV2ID0gVVNCUkVWX1VOS05PV047CiAJCWRldmljZV9wcmludGYoc2Vs ZiwgInByZS0yLjAgVVNCIHJldlxuIik7CisJCWlmIChwY2lfZ2V0X2RldmlkKHNlbGYpID09 IFBDSV9FSENJX0RFVklDRUlEX0NTNTUzNikgeworCQkJc2MtPnNjX2J1cy51c2JyZXYgPSBV U0JSRVZfMl8wOworCQkJZGV2aWNlX3ByaW50ZihzZWxmLCAiUXVpcmsgZm9yIENTNTUzNiBV U0IgMi4wIGVuYWJsZWRcbiIpOworCQkJYnJlYWs7CisJCX0KKwkJc2MtPnNjX2J1cy51c2Jy ZXYgPSBVU0JSRVZfVU5LTk9XTjsKIAkJcmV0dXJuIEVOWElPOwogCWNhc2UgUENJX1VTQlJF Vl8yXzA6CiAJCXNjLT5zY19idXMudXNicmV2ID0gVVNCUkVWXzJfMDsK --------------030909040900050807080200-- --------------enig68134AB1465A17A791368B6A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH0q3PldnAQVacBcgRAjwAAKCbvLp/EJpibEJfeoQLdm0hlnNUDQCg/syO hllgKiK4fVIXzubgb8qgKTI= =+aaw -----END PGP SIGNATURE----- --------------enig68134AB1465A17A791368B6A-- From owner-freebsd-usb@FreeBSD.ORG Sat Mar 8 16:05:06 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 633801065672 for ; Sat, 8 Mar 2008 16:05:06 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id DAFD68FC1C for ; Sat, 8 Mar 2008 16:05:05 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JY0s2-000706-NY for freebsd-usb@freebsd.org; Sat, 08 Mar 2008 15:21:58 +0000 Received: from 78-1-72-195.adsl.net.t-com.hr ([78.1.72.195]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Mar 2008 15:21:58 +0000 Received: from ivoras by 78-1-72-195.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Mar 2008 15:21:58 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Ivan Voras Date: Sat, 08 Mar 2008 16:21:51 +0100 Lines: 65 Message-ID: References: <200801262120.m0QLK4O3021353@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig51C95682785105DC6CB27324" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78-1-72-195.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) In-Reply-To: <200801262120.m0QLK4O3021353@freefall.freebsd.org> X-Enigmail-Version: 0.95.6 Sender: news Subject: Re: usb/120017: CS5536 (AMD Geode) USB 2.0 quirk 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: Sat, 08 Mar 2008 16:05:06 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig51C95682785105DC6CB27324 Content-Type: multipart/mixed; boundary="------------080506080907050803000202" This is a multi-part message in MIME format. --------------080506080907050803000202 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hans Petter Selasky wrote: > Do you know if the EHCI chip used is compliant to USBREV_2_0 ? The answer to this apparently keeps getting lost in the mail :) Yes, it=20 is compliant, for all intents and purposes (it works as USB2 on Linux=20 and FreeBSD). Can I bug someone to commit this patch? --------------080506080907050803000202 Content-Type: text/plain; name="ehci_pci.c.patch.txt" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="ehci_pci.c.patch.txt" LS0tIHVzYl8vZWhjaV9wY2kuYwkyMDA4LTAxLTI2IDE4OjQyOjExLjAwMDAwMDAwMCArMDEw MAorKysgdXNiL2VoY2lfcGNpLmMJMjAwOC0wMS0yNiAyMToxNToyOC4wMDAwMDAwMDAgKzAx MDAKQEAgLTk5LDYgKzk5LDggQEAKIC8qIEFNRCAqLwogI2RlZmluZSBQQ0lfRUhDSV9ERVZJ Q0VJRF84MTExCQkweDEwMjI3NDYzCiBzdGF0aWMgY29uc3QgY2hhciAqZWhjaV9kZXZpY2Vf ODExMSA9ICJBTUQgODExMSBVU0IgMi4wIGNvbnRyb2xsZXIiOworI2RlZmluZSBQQ0lfRUhD SV9ERVZJQ0VJRF9DUzU1MzYJMHgyMDk1MTAyMgorc3RhdGljIGNvbnN0IGNoYXIgKmVoY2lf ZGV2aWNlX2NzNTUzNiA9ICJBTUQgQ1M1NTM2IChHZW9kZSkgVVNCIDIuMCBjb250cm9sbGVy IjsKIAogLyogQVRJICovCiAjZGVmaW5lIFBDSV9FSENJX0RFVklDRUlEX1NCMjAwCQkweDQz NDUxMDAyCkBAIC0yMTQsNiArMjE2LDggQEAKIAkJcmV0dXJuIChlaGNpX2RldmljZV9tNTIz OSk7CiAJY2FzZSBQQ0lfRUhDSV9ERVZJQ0VJRF84MTExOgogCQlyZXR1cm4gKGVoY2lfZGV2 aWNlXzgxMTEpOworCWNhc2UgUENJX0VIQ0lfREVWSUNFSURfQ1M1NTM2OgorCQlyZXR1cm4g KGVoY2lfZGV2aWNlX2NzNTUzNik7CiAJY2FzZSBQQ0lfRUhDSV9ERVZJQ0VJRF9TQjIwMDoK IAkJcmV0dXJuIChlaGNpX2RldmljZV9zYjIwMCk7CiAJY2FzZSBQQ0lfRUhDSV9ERVZJQ0VJ RF9TQjQwMDoKQEAgLTI5MSw4ICsyOTUsMTMgQEAKIAljYXNlIFBDSV9VU0JSRVZfUFJFXzFf MDoKIAljYXNlIFBDSV9VU0JSRVZfMV8wOgogCWNhc2UgUENJX1VTQlJFVl8xXzE6Ci0JCXNj LT5zY19idXMudXNicmV2ID0gVVNCUkVWX1VOS05PV047CiAJCWRldmljZV9wcmludGYoc2Vs ZiwgInByZS0yLjAgVVNCIHJldlxuIik7CisJCWlmIChwY2lfZ2V0X2RldmlkKHNlbGYpID09 IFBDSV9FSENJX0RFVklDRUlEX0NTNTUzNikgeworCQkJc2MtPnNjX2J1cy51c2JyZXYgPSBV U0JSRVZfMl8wOworCQkJZGV2aWNlX3ByaW50ZihzZWxmLCAiUXVpcmsgZm9yIENTNTUzNiBV U0IgMi4wIGVuYWJsZWRcbiIpOworCQkJYnJlYWs7CisJCX0KKwkJc2MtPnNjX2J1cy51c2Jy ZXYgPSBVU0JSRVZfVU5LTk9XTjsKIAkJcmV0dXJuIEVOWElPOwogCWNhc2UgUENJX1VTQlJF Vl8yXzA6CiAJCXNjLT5zY19idXMudXNicmV2ID0gVVNCUkVWXzJfMDsK --------------080506080907050803000202-- --------------enig51C95682785105DC6CB27324 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH0q8PldnAQVacBcgRAitQAJwKSfzBfcjVSozVlYaIy8OZL0aV0QCePJm9 rXYsetjmCSiIGPFSxIdvFjc= =BxMF -----END PGP SIGNATURE----- --------------enig51C95682785105DC6CB27324-- From owner-freebsd-usb@FreeBSD.ORG Sat Mar 8 18:24:54 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 931DD1065676 for ; Sat, 8 Mar 2008 18:24:54 +0000 (UTC) (envelope-from dorian.buettner@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 00EFC8FC1D for ; Sat, 8 Mar 2008 18:24:53 +0000 (UTC) (envelope-from dorian.buettner@gmx.de) Received: (qmail invoked by alias); 08 Mar 2008 17:58:12 -0000 Received: from port-92-192-81-142.dynamic.qsc.de (EHLO zock.doris.net) [92.192.81.142] by mail.gmx.net (mp040) with SMTP; 08 Mar 2008 18:58:12 +0100 X-Authenticated: #1682771 X-Provags-ID: V01U2FsdGVkX19wXdInIwZwob05yYf3Aj+wswF+Ewq3MdVvCM2Ubu +NNVWSDcsZ7uF4 From: Dorian =?iso-8859-1?q?B=FCttner?= To: freebsd-usb@freebsd.org, John Baldwin Date: Sat, 8 Mar 2008 18:58:11 +0100 User-Agent: KMail/1.9.7 References: <200802272200.m1RM03tS058913@freefall.freebsd.org> In-Reply-To: <200802272200.m1RM03tS058913@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803081858.12199.dorian.buettner@gmx.de> X-Y-GMX-Trusted: 0 Cc: Subject: Re: usb/118670: [ums] [patch] Razer Copperhead Laser Mouse shows up as keyboard 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: Sat, 08 Mar 2008 18:24:54 -0000 On Wednesday 27 February 2008 23:00:03 John Baldwin wrote: > The following reply was made to PR usb/118670; it has been noted by GNATS. > > From: John Baldwin > To: bug-followup@freebsd.org, Uwe@grohnwaldt.eu > Cc: imp@freebsd.org > Subject: Re: usb/118670: [ums] [patch] Razer Copperhead Laser Mouse shows > up as keyboard Date: Wed, 27 Feb 2008 16:41:13 -0500 > > According to the USB spec, the protocol field is only defined if the > subclass is 1. So a subclass of 0 is really a violation of the spec. I > think a better fix is to put back the old hid_is_collection() test first > and then directly check the descriptor if that fails: > > Index: ums.c > =================================================================== > RCS file: /usr/cvs/src/sys/dev/usb/ums.c,v > retrieving revision 1.97 > diff -u -r1.97 ums.c > --- ums.c 26 Dec 2007 14:31:16 -0000 1.97 > +++ ums.c 27 Feb 2008 21:40:48 -0000 > @@ -198,7 +198,10 @@ > if (err) > return (UMATCH_NONE); > > - if (id->bInterfaceClass == UICLASS_HID && > + if (hid_is_collection(desc, size, > + HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_MOUSE))) > + ret = UMATCH_IFACECLASS; > + else if (id->bInterfaceClass == UICLASS_HID && > id->bInterfaceSubClass == UISUBCLASS_BOOT && > id->bInterfaceProtocol == UIPROTO_MOUSE) > ret = UMATCH_IFACECLASS; > > -- > John Baldwin > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" For me, this patch also works with X!