Re: USB devices fail unnecessarily on unpowered hubs

From: Alan Stern
Date: Thu Jun 01 2006 - 12:56:43 EST


On Thu, 1 Jun 2006, linux-os (Dick Johnson) wrote:

> >> Yes, it sounds like we're being non-real-worldly here. This change
> >> apparently broke things. Did it actually fix anything as well?
> >
> > Yes. At least, I think so. The change directly addresses a complaint
> > filed here:
> >
> > http://marc.theaimsgroup.com/?l=linux-usb-users&m=112438431718562&w=2

> Many, most, perhaps all such devices don't take more power when they
> are "enabled". Everything is already running and sucking up maximum
> current when you plug it in! If the motherboard didn't smoke when
> the device was plugged in, you might just as well let the user use
> it! Perhaps a ** WARNING ** message somewhere, but by golly, they
> got it running or else you wouldn't be able to read its parameters.

Looks like you didn't bother to read that complaint and the follow-up
messages. Robert Marquardt's device has two configurations, one using 100
mA and the other using 500 mA. Before my patch, Linux would always
install the high-power config -- even if the device was behind a
bus-powered hub. According to Robert:

This can trigger the overcurrent protection of a bus powered
hub which usually then switches off completely dragging down
three other innocent devices.

Please tell me that Linux kernel programmers are not that idiotic.

I'll avoid speculations about which kernel programmers are or are not
idiotic...

Alan Stern

-
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/