lkml.org 
[lkml]   [2006]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [linux-usb-devel] error to be returned while suspended
On Sun, 8 Oct 2006, Oliver Neukum wrote:

> I've never said that autosuspend is a bad idea. For many devices it is
> simple and painless. But it is insufficient. Therefore I think removing
> the ability to explicitely request a suspension from user space is wrong.

I tend to agree. And I expect we _will_ end up with a userspace interface
for suspending some devices. Other devices, like USB hubs, have no need
of such an interface (other than for testing, perhaps).

The reason for removing the current interface is just that it is so bad.
Look how confused you were when you saw it recently. Values are 0, 2, and
3, 3 automatically gets changed to 2,... There isn't even any way for a
driver to tell whether a suspend message is a runtime request from
userspace or a system sleep transition notification!

> If so many people cannot come up with a good design, doesn't that indicate
> there's no single method that satisfies all needs?

Probably. That's why I've been saying all along that these things need to
be decided by the individual drivers. No single design will be
appropriate for all of them.

Alan Stern

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-10-08 16:31    [W:0.101 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site