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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]