Re: [linux-usb-devel] USB HUB port power control from user spacea

2006-05-23 Thread Vlado Handziski
On 5/18/06, Guennadi Liakhovetski <[EMAIL PROTECTED]> wrote: Hi all, I've experimented a bit with the hub-power switching program from NIIBE Yutaka and I've got a couple of questions to my observations. On Sat, 14 Jan 2006, NIIBE Yutaka wrote: > Vlado Handziski wrote: >> http://thread.gmane.

Re: [linux-usb-devel] USB HUB port power control from user spacea

2006-05-18 Thread Alan Stern
On Thu, 18 May 2006, Guennadi Liakhovetski wrote: > > It would be good to notify the kernel that it should check for > > disconnected ports when you shut off the power. Right now there's no way > > to do it. However it wouldn't be hard to add a sysfs interface for such a > > purpose. > > You me

Re: [linux-usb-devel] USB HUB port power control from user spacea

2006-05-18 Thread Guennadi Liakhovetski
On Thu, 18 May 2006, Alan Stern wrote: The relevant part of the spec is 11.24.2.7.2.1, which says that the C_PORT_CONNECTION bit is set by attach or detach detect events, implying it is not set by power changes. It would be good to notify the kernel that it should check for disconnected ports w

Re: [linux-usb-devel] USB HUB port power control from user spacea

2006-05-18 Thread Alan Stern
On Thu, 18 May 2006, Guennadi Liakhovetski wrote: > On Thu, 18 May 2006, Guennadi Liakhovetski wrote: > > > doesn't. You only get some control URBs which I haven't tried yet to > > interpret exactly, and first on power on you get an URB on the interrupt > > Ok, I decoded them: 2 control URBs on

Re: [linux-usb-devel] USB HUB port power control from user spacea

2006-05-18 Thread Guennadi Liakhovetski
On Thu, 18 May 2006, Guennadi Liakhovetski wrote: doesn't. You only get some control URBs which I haven't tried yet to interpret exactly, and first on power on you get an URB on the interrupt Ok, I decoded them: 2 control URBs on power off and on are just the URBs sent by the program to switc

Re: [linux-usb-devel] USB HUB port power control from user spacea

2006-05-18 Thread Guennadi Liakhovetski
Hi all, I've experimented a bit with the hub-power switching program from NIIBE Yutaka and I've got a couple of questions to my observations. On Sat, 14 Jan 2006, NIIBE Yutaka wrote: Vlado Handziski wrote: http://thread.gmane.org/gmane.linux.usb.devel/36739 at the end I have posted a pyth

Re: [linux-usb-devel] USB HUB port power control from user spacea

2006-01-14 Thread NIIBE Yutaka
Vlado Handziski wrote: > http://thread.gmane.org/gmane.linux.usb.devel/36739 > > > at the end I have posted a python wrapper over libusb for controlling the > hub port power. The issue with the "self-healing" in the kernel is still > there. We are currently patching the kernel to disable the automa

Re: [linux-usb-devel] USB HUB port power control from user spacea

2006-01-14 Thread NIIBE Yutaka
Attached is initial version of mine, which implements port power control in user space. It works fine for me. Thanks Alan and David for the suggestions and patience. The problem is that we need to select proper USB hub. It seems that many USB hub (especially root hub) omits this feature. I fou

Re: [linux-usb-devel] USB HUB port power control from user spacea

2006-01-13 Thread Alan Stern
On Fri, 13 Jan 2006, NIIBE Yutaka wrote: > NIIBE Yutaka wrote: > > Could you please take a deep breath, Alan? > > It is me who need a deep breath. :-> Sorry, Alan. > > My analysis was wrong, because I confused between requesttype and > request. Thanks David who pointed out in private mail. >

Re: [linux-usb-devel] USB HUB port power control from user spacea

2006-01-13 Thread NIIBE Yutaka
NIIBE Yutaka wrote: > Could you please take a deep breath, Alan? It is me who need a deep breath. :-> Sorry, Alan. My analysis was wrong, because I confused between requesttype and request. Thanks David who pointed out in private mail. Here again. In drivers/usb/core/hub.c, there are functio