diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2007-08-21 15:40:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 17:55:19 -0400 |
commit | eb23105462304fd35571fd0cab1de7aec79a9ec5 (patch) | |
tree | 3579e74b3f1a6e68d42de01c122d206447454d4b /include/linux/usb.h | |
parent | b0d9efba3ec53468984aecef8eeaf079089f2e5a (diff) |
USB: add urb->unlinked field
This patch (as970) adds a new urb->unlinked field, which is used to
store the status of unlinked URBs since we can't use urb->status for
that purpose any more. To help simplify the HCDs, usbcore will check
urb->unlinked before calling the completion handler; if the value is
set it will automatically override the status reported by the HCD.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: David Brownell <david-b@pacbell.net>
CC: Olav Kongas <ok@artecdesign.ee>
CC: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
CC: Tony Olech <tony.olech@elandigitalsystems.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r-- | include/linux/usb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 92d63c6b6fc6..5c7b79088add 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -1245,6 +1245,7 @@ struct urb | |||
1245 | void *hcpriv; /* private data for host controller */ | 1245 | void *hcpriv; /* private data for host controller */ |
1246 | atomic_t use_count; /* concurrent submissions counter */ | 1246 | atomic_t use_count; /* concurrent submissions counter */ |
1247 | u8 reject; /* submissions will fail */ | 1247 | u8 reject; /* submissions will fail */ |
1248 | int unlinked; /* unlink error code */ | ||
1248 | 1249 | ||
1249 | /* public: documented fields in the urb that can be used by drivers */ | 1250 | /* public: documented fields in the urb that can be used by drivers */ |
1250 | struct list_head urb_list; /* list head for use by the urb's | 1251 | struct list_head urb_list; /* list head for use by the urb's |