From owner-freebsd-usb@FreeBSD.ORG Wed Jun 23 07:10:05 2010 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 963561065789 for ; Wed, 23 Jun 2010 07:10:05 +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 55BC78FC26 for ; Wed, 23 Jun 2010 07:10:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5N7A5Ux008455 for ; Wed, 23 Jun 2010 07:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5N7A5H6008454; Wed, 23 Jun 2010 07:10:05 GMT (envelope-from gnats) Resent-Date: Wed, 23 Jun 2010 07:10:05 GMT Resent-Message-Id: <201006230710.o5N7A5H6008454@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, "Dmitry S. Luhtionov" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63111106566C for ; Wed, 23 Jun 2010 07:09:40 +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 520A08FC08 for ; Wed, 23 Jun 2010 07:09:40 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o5N79dnU081681 for ; Wed, 23 Jun 2010 07:09:39 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o5N79dxc081653; Wed, 23 Jun 2010 07:09:39 GMT (envelope-from nobody) Message-Id: <201006230709.o5N79dxc081653@www.freebsd.org> Date: Wed, 23 Jun 2010 07:09:39 GMT From: "Dmitry S. Luhtionov" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/148080: usbconfig sometimes does not turn off the 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: Wed, 23 Jun 2010 07:10:05 -0000 >Number: 148080 >Category: usb >Synopsis: usbconfig sometimes does not turn off the device >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 23 07:10:04 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Dmitry S. Luhtionov >Release: 8.0-STABLE amd64 >Organization: >Environment: FreeBSD po.netcom.dp.ua 8.0-STABLE FreeBSD 8.0-STABLE #0: Sun Jun 20 03:30:29 EEST 2010 mitya@po.netcom.dp.ua:/usr/src/sys/amd64/compile/lan amd64 >Description: I tried to make some device that would react to the disappearance of power Jun 19 23:45:36 po kernel: ugen0.3: at usbus0 Jun 19 23:45:36 po kernel: uftdi0: on usbus0 usbconfig -u 0 -a 2 power_on usbconfig -u 0 -a 2 power_on usbconfig -u 0 -a 2 power_off Jun 19 23:45:43 po kernel: ugen0.3: at usbus0 (disconnected) Jun 19 23:45:43 po kernel: uftdi0: at uhub2, port 2, addr 3 (disconnected) "usbconfig list" shows that the power is off, but output there are 6 volts ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.2: at usbus0, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=OFF ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.3: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON usbconfig -u 0 -a 2 reset usbconfig -u 0 -a 2 power_off really disable power on output then you can take some time to usbconfig -u 0 -a 2 power_on usbconfig -u 0 -a 2 power_off all work fine I think this is some strange behavior, when I twice call "usbconfig power_on" I can not now show something, because I ruined the device solder >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: