* [PATCH] USB: power-management.txt - disconnect clarification
@ 2007-11-12 9:55 Tilman Schmidt
2007-11-12 19:42 ` Alan Stern
0 siblings, 1 reply; 3+ messages in thread
From: Tilman Schmidt @ 2007-11-12 9:55 UTC (permalink / raw)
To: Alan Stern, Greg Kroah-Hartman, Andrew Morton, linux-usb-devel,
linux-kernel
From: Tilman Schmidt <tilman@imap.cc>
Add a paragraph to Documentation/usb/power-management.txt about the
interaction between suspend and disconnect.
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
---
--- linux-2.6/Documentation/usb/power-management.txt 2007-10-14 00:41:08.000000000 +0200
+++ linux-2.6.24-rc2-work/Documentation/usb/power-management.txt 2007-11-12 10:27:30.000000000 +0100
@@ -278,6 +278,12 @@
(although the interfaces will be in the same altsettings as
before the suspend).
+If the device is disconnected or powered down while it is suspended,
+the disconnect method will be called instead of the resume or
+reset_resume method. This will also happen if the system is resumed
+from hibernation, as the device could have been disconnected without
+the system being able to detect it.
+
The reset_resume method is used by the USB Persist facility (see
Documentation/usb/persist.txt) and it can also be used under certain
circumstances when CONFIG_USB_PERSIST is not enabled. Currently, if a
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] USB: power-management.txt - disconnect clarification
2007-11-12 9:55 [PATCH] USB: power-management.txt - disconnect clarification Tilman Schmidt
@ 2007-11-12 19:42 ` Alan Stern
2007-11-15 21:33 ` Tilman Schmidt
0 siblings, 1 reply; 3+ messages in thread
From: Alan Stern @ 2007-11-12 19:42 UTC (permalink / raw)
To: Tilman Schmidt
Cc: Greg Kroah-Hartman, Andrew Morton, linux-usb-devel, linux-kernel
On Mon, 12 Nov 2007, Tilman Schmidt wrote:
> From: Tilman Schmidt <tilman@imap.cc>
>
> Add a paragraph to Documentation/usb/power-management.txt about the
> interaction between suspend and disconnect.
>
> Signed-off-by: Tilman Schmidt <tilman@imap.cc>
> ---
>
> --- linux-2.6/Documentation/usb/power-management.txt 2007-10-14 00:41:08.000000000 +0200
> +++ linux-2.6.24-rc2-work/Documentation/usb/power-management.txt 2007-11-12 10:27:30.000000000 +0100
> @@ -278,6 +278,12 @@
> (although the interfaces will be in the same altsettings as
> before the suspend).
>
> +If the device is disconnected or powered down while it is suspended,
> +the disconnect method will be called instead of the resume or
> +reset_resume method. This will also happen if the system is resumed
> +from hibernation, as the device could have been disconnected without
> +the system being able to detect it.
> +
I don't like the second sentence very much. How about something like
this instead:
+If the device is disconnected or powered down while it is suspended,
+the disconnect method will be called instead of the resume or
+reset_resume method. This is also quite likely to happen when
+waking up from hibernation, as many systems do not maintain suspend
+current to the USB host controllers during hibernation. (It's
+possible to work around the hibernation-forces-disconnect problem by
+using the USB-Persist facility, described in
+Documentation/usb/persist.txt.)
Alan Stern
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] USB: power-management.txt - disconnect clarification
2007-11-12 19:42 ` Alan Stern
@ 2007-11-15 21:33 ` Tilman Schmidt
0 siblings, 0 replies; 3+ messages in thread
From: Tilman Schmidt @ 2007-11-15 21:33 UTC (permalink / raw)
To: Alan Stern
Cc: Greg Kroah-Hartman, Andrew Morton, linux-usb-devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 859 bytes --]
Am 12.11.2007 20:42 schrieb Alan Stern:
> I don't like the second sentence very much. How about something like
> this instead:
>
> +If the device is disconnected or powered down while it is suspended,
> +the disconnect method will be called instead of the resume or
> +reset_resume method. This is also quite likely to happen when
> +waking up from hibernation, as many systems do not maintain suspend
> +current to the USB host controllers during hibernation. (It's
> +possible to work around the hibernation-forces-disconnect problem by
> +using the USB-Persist facility, described in
> +Documentation/usb/persist.txt.)
Fine by me.
--
Tilman Schmidt E-Mail: tilman@imap.cc
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten Bits.
Ungeöffnet mindestens haltbar bis: (siehe Rückseite)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 253 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-11-15 21:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-12 9:55 [PATCH] USB: power-management.txt - disconnect clarification Tilman Schmidt
2007-11-12 19:42 ` Alan Stern
2007-11-15 21:33 ` Tilman Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox