Bug 148080 - usbconfig(8) sometimes does not turn off the device
Summary: usbconfig(8) sometimes does not turn off the device
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 8.0-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-23 08:10 UTC by Dmitry
Modified: 2018-01-03 05:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry 2010-06-23 08:10:04 UTC
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
Comment 1 Hans Petter Selasky 2010-07-06 12:10:40 UTC
On Wednesday 23 June 2010 09:09:39 Dmitry S. Luhtionov wrote:
> >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

Update: There are going to be some patches into 9-current soon.

--HPS
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:19 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped