Skip to content

Commit 3c886c5

Browse files
AlanSterngregkh
authored andcommitted
USB: power-management documenation update
This patch (as1014) was partly written by Tilman Schmidt. It clarifies the USB power-management documentation by explaining that when a disconnect occurs, a suspend method call might not be followed by either a resume or a reset_resume call. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Tilman Schmidt <tilman@imap.cc> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent bc59462 commit 3c886c5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎Documentation/usb/power-management.txt‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,14 @@ optional. The methods' jobs are quite simple:
278278
(although the interfaces will be in the same altsettings as
279279
before the suspend).
280280

281+
If the device is disconnected or powered down while it is suspended,
282+
the disconnect method will be called instead of the resume or
283+
reset_resume method. This is also quite likely to happen when
284+
waking up from hibernation, as many systems do not maintain suspend
285+
current to the USB host controllers during hibernation. (It's
286+
possible to work around the hibernation-forces-disconnect problem by
287+
using the USB Persist facility.)
288+
281289
The reset_resume method is used by the USB Persist facility (see
282290
Documentation/usb/persist.txt) and it can also be used under certain
283291
circumstances when CONFIG_USB_PERSIST is not enabled. Currently, if a

0 commit comments

Comments
 (0)