Subject: Re: usb panic
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: current-users
Date: 01/24/2007 13:53:55
smb@cs.columbia.edu said:
> It avoids the panic

OK, so I've committed that fix.

> uvisor0: failed  to set configuration, err=NO_POWER

> it still complains about
> power:
> uvisor0: failed  to set configuration, err=NO_POWER

The descriptor dump shows that the Palmpilot uses only
one device configuration. (I was suspecting that there
are multiple with different power requirements.)
So the problem must be that the actual power state (which
is not displayed by usbctl) is not reported correctly.
So I've commented out the consistency check which lead
to the error message.

> The output is identical, with or without plugging in the AC
> adapter.

This is expected - descriptors are constant. If a device
supports multiple states of power supply (or saving), it
should have multiple configuration descriptors, and the
device driver is responsible to choose one.
I haven't seen such a device yet.

best regards
Matthias