USB: power-management.txt - disconnect clarification
Subsystems (2)
PATCH 1/1 USB: power-management.txt - disconnect clarification
From: Tilman Schmidt <[email protected]>
Add a paragraph to Documentation/usb/power-management.txt about the interaction between suspend and disconnect.
---
Documentation/usb/power-management.txt +6 -0
@@ -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
Quoted 11 lines · Tilman Schmidt
From: Tilman Schmidt <[email protected]>
Add a paragraph to
Documentation/usb/power-management.txtabout the interaction between suspend and disconnect.Signed-off-by Tilman Schmidt <[email protected]>---
Documentation/usb/power-management.txt line 286
Quoted 9 lines
Documentation/usb/power-management.txt +6
-0@@ -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
Am 12.11.2007 20:42 schrieb Alan Stern:
Review
Quoted 11 lines
I don't like the second sentence very much. How about something like this instead:
(quoted diff) +8
-0+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.
Signature · 4 lines
Tilman Schmidt E-Mail: [email protected] Bonn, Germany Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Ungeöffnet mindestens haltbar bis: (siehe Rückseite)