lkml.org 
[lkml]   [2013]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] usb: Make USB persist default configurable
On Tue, 19 Mar 2013, Vincent Palatin wrote:

> > The races mentioned above don't seem to be very dangerous. How likely
> > is it that the system will be suspended within a few milliseconds of
> > probing a new USB device?
>
> For laptops, if the suspend/resume is triggered by the lid open/close
> detection, this is somewhat likely and bit us in the past :
> the classical use case I have encountered is a back-to-back suspend
> triggered by the user opening the lid then closing it again in the
> next 2 or 3 seconds because he has changed is mind (damn user...),
> might be also triggered by lid hall sensor missing proper debouncing
> (but in that case, the mechanical time constant is often shorter than
> the latency of resuming USB devices).

Yes, okay, that's true. If a new USB device is plugged in while the
lid is shut, and then the lid is opened very briefly, it's possible
that the system could suspend again before the new device's "persist"
attribute is updated. Does that case really matter? The device isn't
likely to be in use at that point.

Alan Stern



\
 
 \ /
  Last update: 2013-03-19 17:21    [W:0.048 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site