public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
  • [parent not found: <6iYxg-53W-29@gated-at.bofh.it>]
  • [parent not found: <6kl8h-1Uf-15@gated-at.bofh.it>]
    * Re: USB devices fail unnecessarily on unpowered hubs
    @ 2006-06-05 11:07 Lee Dowling
      0 siblings, 0 replies; 23+ 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] 23+ messages in thread
    * Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs
    @ 2006-06-02 15:11 Alan Stern
      2006-06-02 19:49 ` David Liontooth
      0 siblings, 1 reply; 23+ messages in thread
    From: Alan Stern @ 2006-06-02 15:11 UTC (permalink / raw)
      To: David Liontooth; +Cc: Greg KH, Andrew Morton, linux-kernel, linux-usb-devel
    
    On Thu, 1 Jun 2006, David Liontooth wrote:
    
    > What are the reasons not to do this? What happens if a USB stick is
    > underpowered to one unit? Nothing? Slower transmission? Data loss? Flash
    > memory destruction? If it's just speed, it's a price well worth paying.
    
    I do wish people would read the earlier messages in this thread before 
    posting.  Go back and look at this one:
    
    http://marc.theaimsgroup.com/?l=linux-kernel&m=114918113822427&w=2
    
    Trying to draw too much current from an unpowered hub can and does cause 
    data loss.
    
    Alan Stern
    
    
    ^ permalink raw reply	[flat|nested] 23+ messages in thread
    [parent not found: <6iYGP-5hv-3@gated-at.bofh.it>]
    * 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 ` Andrew Morton
      0 siblings, 2 replies; 23+ 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] 23+ messages in thread

    end of thread, other threads:[~2006-06-07  0:51 UTC | newest]
    
    Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <6iS8y-35Z-5@gated-at.bofh.it>
         [not found] ` <6iWP5-2gj-71@gated-at.bofh.it>
         [not found]   ` <6iX82-2UJ-3@gated-at.bofh.it>
    2006-06-01 23:35     ` USB devices fail unnecessarily on unpowered hubs Robert Hancock
    2006-06-01 23:46       ` Randy.Dunlap
         [not found]   ` <6iYxg-53W-29@gated-at.bofh.it>
         [not found]     ` <6j5oR-7Sw-11@gated-at.bofh.it>
    2006-06-02  2:39       ` [linux-usb-devel] " Robert Hancock
         [not found] <6kl8h-1Uf-15@gated-at.bofh.it>
    2006-06-07  0:51 ` Robert Hancock
    2006-06-05 11:07 Lee Dowling
      -- strict thread matches above, loose matches on Subject: below --
    2006-06-02 15:11 [linux-usb-devel] " Alan Stern
    2006-06-02 19:49 ` David Liontooth
         [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
    2006-06-01  9:18 David Liontooth
    2006-05-30 20:01 ` Pavel Machek
    2006-06-03  9:29   ` Oliver Neukum
    2006-06-01 10:01 ` 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:59     ` Andrew Morton
    2006-06-01 17:08       ` Alan Stern
    2006-06-01 17:34   ` Mark Lord
    2006-06-01 17:47     ` Alan Stern
    

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