Re: [linux-usb-devel] USB devices fail unnecessarily on unpowered hubs



Am Freitag, 2. Juni 2006 02:03 schrieb David Liontooth:

The MaxPower value does not appear to be a reliable index of this. My
USB stick has a MaxPower value of 178mA and works flawlessly off an
unpowered hub. Unfortunately devices don't seem to tell us what their

It works flawlessly on all hubs you tested, iff other ports are unused.
Unfortunately it needs to work on all hubs, even if all ports are used.

udev could surely pick up on the MaxPower value and tolerate up to a
100% underrun on USB flash drives. That would likely still 90% of the
pain right there, maybe all of it.

udev can do all it wants if it is running with sufficient priviledge level.
That doesn't change the need for a safe default. The system must run
safely even if udev has gone south or is not installed.

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.

Data loss. Possibly even on other devices and not reproducible.

This is a great opportunity for a small exercise in empathy, utilizing
that little long-neglected mirror neuron. Thousands of USB sticks
inexplicably go dead in people's familiar hubs on keyboards and desks;
Linux kernel coders dream sweet dreams of not violating USB power rules.
I appreciate Andrew's support for a real-worldly solution.

Maybe we should generate a specific "over power budget" event.

Sympathy is well and good, but partial here. Any option will screw one
group. In this case we go with the standard.

Regards
Oliver
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Spending that Economy Booster
    ... computer shop down the road that will build them to order. ... I've tried two different USB hubs. ... Windows starts looking for drivers and can find none. ...
    (rec.boats)
  • Re: Re USB hubs - changing them
    ... All I have ever done when changing USB Hubs is to disconnect everything from the original Hub, disconnect it from the Computer and power source [one of the worst decisions is to buy a Hub which does not have its own power source. ... I would not worry about any difference between USB 1.1 and USB 2.0 cables. ...
    (microsoft.public.windowsxp.general)
  • Re: H55 (Intel) Drivers
    ... The USB2 spec allows for potential of 14. ... I thought USB is supposed to be fully backward compatible. ... If I enable USB in bios, it seems to detect OK (2 hubs and any devices). ...
    (alt.comp.periphs.mainboard.asus)
  • Re: Spending that Economy Booster
    ... computer shop down the road that will build them to order. ... I've tried two different USB hubs. ... Windows starts looking for drivers and can find none. ...
    (rec.boats)