lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.0610081021520.17010-100000@netrider.rowland.org>
Date:	Sun, 8 Oct 2006 10:27:27 -0400 (EDT)
From:	Alan Stern <stern@...land.harvard.edu>
To:	Oliver Neukum <oliver@...kum.org>
cc:	David Brownell <david-b@...bell.net>, Pavel Machek <pavel@....cz>,
	USB development list <linux-usb-devel@...ts.sourceforge.net>,
	Kernel development list <linux-kernel@...r.kernel.org>
Subject: Re: [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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ