Re: btusb autosuspend and circular lock dep

Marcel Holtmann
2009-08-24T23:30:42Z

Hi Oliver,

> This patch adds support of USB autosuspend to the btusb driver
>
> If the device doesn't support remote wakeup, simple support based
> on up/down is provided. If the device supports remote wakeup,
> additional support for autosuspend while the interface is up is provided.
> This is done by queueing URBs in an anchor structure and waking the
> device up from a work queue on sending. Reception triggers remote
> wakeup.
> The last busy facility of the USB autosuspend code is used and
> to close a race between autosuspend and transmission a counter
> of ongoing transmissions is maintained.
> #ifdefs for CONFIG_PM are added as necessary.

actually git-am complaint about some whitespaces, but I fixed that
manually. Thanks for the patch.

Regards

Marcel