On Wed, 12 Oct 2011, Matthew Garrett wrote:
On Wed, Oct 12, 2011 at 06:56:32PM +0200, Oliver Neukum wrote:
quoted
Am Mittwoch, 12. Oktober 2011, 18:16:51 schrieb Matthew Garrett:
quoted
Yeah. Plausibly the model we have in hid is wrong at the moment - rather
than set flags that block suspend, it might make more sense to take
references. It'd complicate things a little, in that we'd have to take
more care in terms of keeping track of the state.
I am afraid references are very hard to take there because it needs to be done
in interrupt.
True. That makes things rather more awkward.
What about the second idea I mentioned? If autosuspend fails with
-EBUSY or -EAGAIN, usbcore could schedule another autosuspend attempt.
Alan Stern