Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248741
b: refs/heads/master
c: 6498d9d
h: refs/heads/master
i:
  248739: 788c5bd
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Apr 30, 2011
1 parent 781e598 commit 2dae493
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15b2f3204a5c878c32939094775fb7349f707263
refs/heads/master: 6498d9db6d2dad4cf5deb2dd09e0816904f41ca5
8 changes: 5 additions & 3 deletions trunk/Documentation/usb/callbacks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,11 @@ pre_reset

int (*pre_reset)(struct usb_interface *intf);

Another driver or user space is triggering a reset on the device which
contains the interface passed as an argument. Cease IO and save any
device state you need to restore.
A driver or user space is triggering a reset on the device which
contains the interface passed as an argument. Cease IO, wait for all
outstanding URBs to complete, and save any device state you need to
restore. No more URBs may be submitted until the post_reset method
is called.

If you need to allocate memory here, use GFP_NOIO or GFP_ATOMIC, if you
are in atomic context.
Expand Down
6 changes: 4 additions & 2 deletions trunk/include/linux/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,10 @@ struct usbdrv_wrap {
* @resume: Called when the device is being resumed by the system.
* @reset_resume: Called when the suspended device has been reset instead
* of being resumed.
* @pre_reset: Called by usb_reset_device() when the device
* is about to be reset.
* @pre_reset: Called by usb_reset_device() when the device is about to be
* reset. This routine must not return until the driver has no active
* URBs for the device, and no more URBs may be submitted until the
* post_reset method is called.
* @post_reset: Called by usb_reset_device() after the device
* has been reset
* @id_table: USB drivers use ID table to support hotplugging.
Expand Down

0 comments on commit 2dae493

Please sign in to comment.