diff options
author | Matthew Dharm <mdharm-usb@one-eyed-alien.net> | 2005-06-06 17:21:41 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-27 14:44:03 -0700 |
commit | 4d07ef762fc8d6d35ecc1511a3b953a733a61a5f (patch) | |
tree | 9ea2bbce922ed74bcef3d26dd1843afaf6f7a877 /drivers/usb/storage/transport.h | |
parent | 5203ad441310a4c2abd4fb79015a6bdadc2a5a4f (diff) | |
download | talos-obmc-linux-4d07ef762fc8d6d35ecc1511a3b953a733a61a5f.tar.gz talos-obmc-linux-4d07ef762fc8d6d35ecc1511a3b953a733a61a5f.zip |
[PATCH] USB Storage: port reset on transport error
This patch causes a port reset whenever there's a transport error or abort.
If that fails it reverts back to doing a mass-storage device reset. It
started life as as497 and was rediffed by me.
This makes error recovery a lot quicker and more reliable.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/storage/transport.h')
-rw-r--r-- | drivers/usb/storage/transport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/storage/transport.h b/drivers/usb/storage/transport.h index e25f8d8fc741..8d9e0663f8fe 100644 --- a/drivers/usb/storage/transport.h +++ b/drivers/usb/storage/transport.h @@ -171,4 +171,5 @@ extern int usb_stor_bulk_transfer_buf(struct us_data *us, unsigned int pipe, extern int usb_stor_bulk_transfer_sg(struct us_data *us, unsigned int pipe, void *buf, unsigned int length, int use_sg, int *residual); +extern int usb_stor_port_reset(struct us_data *us); #endif |