public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* USB devices fail unnecessarily on unpowered hubs
@ 2006-06-01  9:18 David Liontooth
  2006-05-30 20:01 ` Pavel Machek
  2006-06-01 10:01 ` USB devices fail unnecessarily on unpowered hubs Andrew Morton
  0 siblings, 2 replies; 45+ messages in thread
From: David Liontooth @ 2006-06-01  9:18 UTC (permalink / raw)
  To: linux-kernel

Starting with 2.6.16, some USB devices fail unnecessarily on unpowered
hubs. Alan Stern explains,

"The idea is that the kernel now keeps track of USB power budgets.  When a 
bus-powered device requires more current than its upstream hub is capable 
of providing, the kernel will not configure it.

Computers' USB ports are capable of providing a full 500 mA, so devices
plugged directly into the computer will work okay.  However unpowered hubs
can provide only 100 mA to each port.  Some devices require (or claim they
require) more current than that.  As a result, they don't get configured
when plugged into an unpowered hub."

http://www.mail-archive.com/linux-usb-devel@lists.sourceforge.net/msg43480.html

This is generating a lot of grief and appears to be unnecessarily
strict. Common USB sticks with a MaxPower value just above 100mA, for
instance, typically work fine on unpowered hubs supplying 100mA.

Is a more user-friendly solution possible? Could the shortfall
information be passed to udev, which would allow rules to be written per
device?

David







^ permalink raw reply	[flat|nested] 45+ messages in thread
[parent not found: <6iWP5-2gj-71@gated-at.bofh.it>]
[parent not found: <6iYGP-5hv-3@gated-at.bofh.it>]
* Re: USB devices fail unnecessarily on unpowered hubs
@ 2006-06-05 11:07 Lee Dowling
  0 siblings, 0 replies; 45+ messages in thread
From: Lee Dowling @ 2006-06-05 11:07 UTC (permalink / raw)
  To: linux-kernel

This, of course, doesn't deal with outside cases.

It's common knowledge that a lot of equipment is running out of spec all  
the time because of cheap components, bad BIOS's etc.  As an example, my  
Asus L4500R laptop (with the latest ASUS BIOS) ALWAYS shows "over-current"  
under Linux on all *internal* USB ports the second ANYTHING is plugged in  
(and I have nearly 50 different USB devices of different types,  
manufacturers and quality).

The suggestion to simply stop over-current ports from working would  
immediately disable all USB ports, including any powered hubs that I plug  
into them, I assume.  I can't update the BIOS any further to stop this and  
if I could I doubt it would solve the problem (it looks like cheap  
hardware to me).  Therefore, you've just removed all my perfectly  
functional USB capability because the best BIOS I can use reports an  
incorrect error (hey, what's new?).

Windows XP, incidentally, runs flawlessly with all USB devices without  
power warnings on this laptop.  This may well be fixable somewhere else,  
it may even be a bug in the internal USB code for my laptop which may be  
help in hunting such bugs down.  However, anything like this should be  
optional and not with some convoluted command-line echo, but by as simple  
binary switch accesible to userspace.  I know what I'm doing, if I choose  
to ignore the error, that's my problem.  The fact is, if I don't ignore  
this particular error, my laptop loses all USB functionality.  Taint my  
kernel if you want (that's what the new userspace taint is for, is it  
not?) but I need to use the USB ports that I've paid a lot of money to  
have and that DO work perfectly if given a nudge.

Spec's are lovely and all, but we all know that if real hardware confirmed  
to the spec's all the time that the Linux kernel would be about half it's  
current size.

Lee Dowling
ICT Technician

^ permalink raw reply	[flat|nested] 45+ messages in thread
[parent not found: <6kl8h-1Uf-15@gated-at.bofh.it>]

end of thread, other threads:[~2006-06-09  2:34 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-01  9:18 USB devices fail unnecessarily on unpowered hubs David Liontooth
2006-05-30 20:01 ` Pavel Machek
2006-06-03  9:29   ` Oliver Neukum
2006-06-05 14:32     ` [linux-usb-devel] " David Brownell
2006-06-06  7:43       ` Oliver Neukum
2006-06-08  7:01         ` Pavel Machek
2006-06-08  8:34       ` [PATCH] limit power budget on spitz Pavel Machek
2006-06-08  8:50         ` Richard Purdie
2006-06-08  9:02           ` Pavel Machek
2006-06-08  9:22             ` Richard Purdie
2006-06-08 17:09               ` Russell King
2006-06-08 18:26                 ` David Brownell
2006-06-08 20:06                   ` Richard Purdie
2006-06-08 20:38                     ` [linux-usb-devel] " David Brownell
2006-06-08 21:22                       ` Richard Purdie
2006-06-08 21:40                         ` David Brownell
2006-06-08 21:49                           ` Richard Purdie
2006-06-08 23:44                             ` David Brownell
2006-06-09  1:25                               ` Nicolas Pitre
2006-06-09  2:03                                 ` David Brownell
2006-06-09  2:34                                   ` Nicolas Pitre
2006-06-01 10:01 ` USB devices fail unnecessarily on unpowered hubs Andrew Morton
2006-06-01 11:42   ` Daniel Drake
2006-06-01 14:58   ` Alan Stern
2006-06-01 15:09     ` linux-os (Dick Johnson)
2006-06-01 15:23       ` Lennart Sorensen
2006-06-01 21:39         ` Dagfinn Ilmari Mannsåker
2006-06-01 15:53       ` Oliver Neukum
2006-06-01 17:24         ` linux-os (Dick Johnson)
2006-06-01 16:57       ` Alan Stern
2006-06-01 16:43     ` [linux-usb-devel] " Greg KH
2006-06-02  0:03       ` David Liontooth
2006-06-02  1:53         ` [linux-usb-devel] " David Brownell
2006-06-02  7:12         ` Oliver Neukum
2006-06-02 15:11         ` Alan Stern
2006-06-02 19:49           ` David Liontooth
2006-06-01 16:59     ` Andrew Morton
2006-06-01 17:08       ` Alan Stern
2006-06-01 17:34   ` Mark Lord
2006-06-01 17:47     ` Alan Stern
     [not found] <6iWP5-2gj-71@gated-at.bofh.it>
     [not found] ` <6iX82-2UJ-3@gated-at.bofh.it>
2006-06-01 23:35   ` Robert Hancock
2006-06-01 23:46     ` Randy.Dunlap
     [not found] <6iYGP-5hv-3@gated-at.bofh.it>
     [not found] ` <6iYQx-5Jc-7@gated-at.bofh.it>
2006-06-01 23:37   ` Robert Hancock
  -- strict thread matches above, loose matches on Subject: below --
2006-06-05 11:07 Lee Dowling
     [not found] <6kl8h-1Uf-15@gated-at.bofh.it>
2006-06-07  0:51 ` Robert Hancock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox