[PATCH] usbcore: port reset for composite devices
This patch (as699) adds usb_reset_composite_device(), a routine for sending a USB port reset to a device with multiple interfaces owned by different drivers. Drivers are notified about impending and completed resets through two new methods in the usb_driver structure. The patch modifieds the usbfs ioctl code to make it use the new routine instead of usb_reset_device(). Follow-up patches will modify the hub, usb-storage, and usbhid drivers so they can utilize this new API. 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
efcaa20525
commit
79efa097e7
@@ -823,8 +823,7 @@ static int proc_connectinfo(struct dev_state *ps, void __user *arg)
|
||||
|
||||
static int proc_resetdevice(struct dev_state *ps)
|
||||
{
|
||||
return usb_reset_device(ps->dev);
|
||||
|
||||
return usb_reset_composite_device(ps->dev, NULL);
|
||||
}
|
||||
|
||||
static int proc_setintf(struct dev_state *ps, void __user *arg)
|
||||
|
Reference in New Issue
Block a user