Google
  Web www.spinics.net

Re: [PATCH] USB: add usbfs stubs for suspend, resume, etc.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Mon, 3 Dec 2007, Oliver Neukum wrote:

> > unbound!  So I wanted to be conservative and keep the kernel's current
> > behavior: The suspend/resume/reset happens and the user-level driver is
> > blissfully igorant of it.
> 
> In theory, blissfully ignoring suspend/resume must work. Anything
> that involves a reset cannot. User space must be prepared with
> a surprise unplug. Surprise state change asks too much.

Perhaps.  But there are devices for which being reset is unlikely to 
cause any problems.  Do we want userspace drivers for these devices to 
start failing unnecessarily?

There is _no_ notification sent to userspace when one of these resets 
occurs -- not even a uevent that could spark a hotplug script into 
rebinding.

So yes, allowing the driver to be unbound is the "correct" approach.  
But by now we've been doing it the wrong way for so long that I'm 
hesitant to change it.

Alan Stern


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
linux-usb-devel@xxxxxxxxxxxxxxxxxxxxx
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

[Home]     [Video for Linux]     [Photo]     [Yosemite Forum]     [Yosemite Photos]    [Video Projectors]     [PDAs]     [Hacking TiVo]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]     [Big List of Linux Books]     [Free Dating]

  Powered by Linux