aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/usb
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/usb')
-rw-r--r--Documentation/usb/power-management.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/Documentation/usb/power-management.txt b/Documentation/usb/power-management.txt
index ad642615ad4c..8817368203d6 100644
--- a/Documentation/usb/power-management.txt
+++ b/Documentation/usb/power-management.txt
@@ -423,15 +423,16 @@ an URB had completed too recently.
423 423
424External suspend calls should never be allowed to fail in this way, 424External suspend calls should never be allowed to fail in this way,
425only autosuspend calls. The driver can tell them apart by checking 425only autosuspend calls. The driver can tell them apart by checking
426udev->auto_pm; this flag will be set to 1 for internal PM events 426the PM_EVENT_AUTO bit in the message.event argument to the suspend
427(autosuspend or autoresume) and 0 for external PM events. 427method; this bit will be set for internal PM events (autosuspend) and
428clear for external PM events.
428 429
429Many of the ingredients in the autosuspend framework are oriented 430Many of the ingredients in the autosuspend framework are oriented
430towards interfaces: The usb_interface structure contains the 431towards interfaces: The usb_interface structure contains the
431pm_usage_cnt field, and the usb_autopm_* routines take an interface 432pm_usage_cnt field, and the usb_autopm_* routines take an interface
432pointer as their argument. But somewhat confusingly, a few of the 433pointer as their argument. But somewhat confusingly, a few of the
433pieces (usb_mark_last_busy() and udev->auto_pm) use the usb_device 434pieces (i.e., usb_mark_last_busy()) use the usb_device structure
434structure instead. Drivers need to keep this straight; they can call 435instead. Drivers need to keep this straight; they can call
435interface_to_usbdev() to find the device structure for a given 436interface_to_usbdev() to find the device structure for a given
436interface. 437interface.
437 438