[PATCH] usb-storage: use usb_reset_composite_device
This patch (as701) modifies usb-storage to take advantage of the new usb_reset_composite_device() API. Now we will be able to safely request port resets even if other drivers are bound to a mass-storage device. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7de18d8bf4
commit
47104b0dd3
@ -286,11 +286,7 @@ static int bus_reset(struct scsi_cmnd *srb)
|
||||
int result;
|
||||
|
||||
US_DEBUGP("%s called\n", __FUNCTION__);
|
||||
|
||||
mutex_lock(&(us->dev_mutex));
|
||||
result = usb_stor_port_reset(us);
|
||||
mutex_unlock(&us->dev_mutex);
|
||||
|
||||
return result < 0 ? FAILED : SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user