Re: Blackberry driver and pm
Greg KH <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Feb 05, 2007 at 11:19:48PM +0100, Oliver Neukum wrote:
> Am Montag, 5. Februar 2007 23:05 schrieb Greg KH:
> > On Mon, Feb 05, 2007 at 09:28:28AM +0100, Oliver Neukum wrote:
> > > Hi,
> > >
> > > I was looking again at the Blackberry driver and its implications for
> > > power management.
> > > You are using the magic command always if you see the descriptor
> > > for 100 mA. If you are on a battery powered hub after the reset, usbcore
> > > won't choose a configuration. So far everything works as planned.
> >
> > No, it will choose the 500mA config as that's all that is available.
> > Remember, the device disconnects itself from the bus and then comes back
> > as a whole new one, with a new power request. So that is when the
> > determination is done.
>
> choose_configuration() can refuse:
> if (insufficient_power > 0)
> dev_info(&udev->dev, "rejected %d configuration%s "
> "due to insufficient available bus power\n",
> insufficient_power, plural(insufficient_power));
>
> if (best) {
> i = best->desc.bConfigurationValue;
> dev_info(&udev->dev,
> "configuration #%d chosen from %d choice%s\n",
> i, num_configs, plural(num_configs));
> } else {
> i = -1;
> dev_warn(&udev->dev,
> "no configuration chosen from %d choice%s\n",
> num_configs, plural(num_configs));
> }
> return i;
> }
>
> generic_probe() will set no configuration:
> c = choose_configuration(udev);
> if (c >= 0) {
> err = usb_set_configuration(udev, c);
Ok, again, I don't see this as being an issue from any other device that
is on the bus, asking for power, yet not having any driver bound to it.
Or is this in relation to the autosuspend issues?
thanks,
greg k-h
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel