Re: [Linux USB] enable/disable individual ports

2015-11-23 Thread Alan Stern
On Mon, 23 Nov 2015, Peter Stuge wrote: > Alan Stern wrote: > > > > > It does print out a message, though not a big one. Would you like it > > > > > to do something more specific? A more verbose "usage" message, > > > > > perhaps? > > > > > > > > That's a good idea, and additionally I think it

Re: [Linux USB] enable/disable individual ports

2015-11-22 Thread Peter Stuge
Alan Stern wrote: > > > > It does print out a message, though not a big one. Would you like it > > > > to do something more specific? A more verbose "usage" message, > > > > perhaps? > > > > > > That's a good idea, and additionally I think it would be important to > > > print (much) more informa

Re: [Linux USB] enable/disable individual ports

2015-11-22 Thread Alan Stern
On Sun, 22 Nov 2015, Greg KH wrote: > On Sun, Nov 22, 2015 at 07:26:08PM +0100, Peter Stuge wrote: > > Alan Stern wrote: > > > It does print out a message, though not a big one. Would you like it > > > to do something more specific? A more verbose "usage" message, > > > perhaps? > > > > That's

Re: [Linux USB] enable/disable individual ports

2015-11-22 Thread Greg KH
On Sun, Nov 22, 2015 at 07:26:08PM +0100, Peter Stuge wrote: > Alan Stern wrote: > > It does print out a message, though not a big one. Would you like it > > to do something more specific? A more verbose "usage" message, > > perhaps? > > That's a good idea, and additionally I think it would be i

Re: [Linux USB] enable/disable individual ports

2015-11-22 Thread Peter Stuge
Alan Stern wrote: > It does print out a message, though not a big one. Would you like it > to do something more specific? A more verbose "usage" message, > perhaps? That's a good idea, and additionally I think it would be important to print (much) more information if the ioctl() fails. > For c

Re: [Linux USB] enable/disable individual ports

2015-11-22 Thread Alan Stern
On Sat, 21 Nov 2015, Greg KH wrote: > > I saved a copy when you first posted it and have used it on quite a few > > occasions. Maybe the tool should be added to the usbutils collection so > > it could reach a somewhat wider audience? Yes, I know the usecases are > > all weird, but that still doe

Re: [Linux USB] enable/disable individual ports

2015-11-21 Thread Greg KH
On Sat, Nov 21, 2015 at 08:32:10PM +0100, Bjørn Mork wrote: > Alan Stern writes: > > > I have written a program (for Linux only; it doesn't use libusb) that > > issues a reset to a single device: > > > > http://marc.info/?l=linux-usb&m=126944503308931&w=2 > > > > You can use this to reset ea

Re: [Linux USB] enable/disable individual ports

2015-11-21 Thread Bjørn Mork
Alan Stern writes: > I have written a program (for Linux only; it doesn't use libusb) that > issues a reset to a single device: > > http://marc.info/?l=linux-usb&m=126944503308931&w=2 > > You can use this to reset each of the 10-port hubs in turn. Or even to > reset the 5-port hub. This

Re: [Linux USB] enable/disable individual ports

2015-11-21 Thread Alan Stern
On Sat, 21 Nov 2015, Patrick Shirkey wrote: > Hi, > > I have a libusb (USB-2.0_ tree with the following layout: > > HOST (USB 2.0) -> 5 port hub (master) -> 5 x 10 port hub -> 50 x USB devices > > It is a 50 unit mobile device charger and also enables USB data comms to > the individual devices.

[Linux USB] enable/disable individual ports

2015-11-20 Thread Patrick Shirkey
Hi, I have a libusb (USB-2.0_ tree with the following layout: HOST (USB 2.0) -> 5 port hub (master) -> 5 x 10 port hub -> 50 x USB devices It is a 50 unit mobile device charger and also enables USB data comms to the individual devices. Each node is independently powered. The devices are all the