usb/148080: usbconfig sometimes does not turn off the device

Dmitry S. Luhtionov mitya at cabletv.dp.ua
Wed Jun 23 07:10:05 UTC 2010


>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 at 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: <FTDI> at usbus0
Jun 19 23:45:36 po kernel: uftdi0: <USB - Serial Cable> 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: <FTDI> 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: <EHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
ugen1.1: <EHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
ugen0.2: <product 0x0020 vendor 0x8087> at usbus0, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=OFF
ugen1.2: <product 0x0020 vendor 0x8087> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE
ugen1.3: <USB to Serial Cypress Semiconductor> 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:


More information about the freebsd-usb mailing list