Merge "libusbhost: add usb_device_reset"

This commit is contained in:
Keun-young Park 2016-01-14 17:28:47 +00:00 committed by Android (Google) Code Review
commit 27f961f93d
2 changed files with 8 additions and 0 deletions

View file

@ -219,6 +219,9 @@ int usb_device_bulk_transfer(struct usb_device *device,
int length,
unsigned int timeout);
/** Reset USB bus for the device */
int usb_device_reset(struct usb_device *device);
/* Creates a new usb_request. */
struct usb_request *usb_request_new(struct usb_device *dev,
const struct usb_endpoint_descriptor *ep_desc);

View file

@ -617,6 +617,11 @@ int usb_device_bulk_transfer(struct usb_device *device,
return ioctl(device->fd, USBDEVFS_BULK, &ctrl);
}
int usb_device_reset(struct usb_device *device)
{
return ioctl(device->fd, USBDEVFS_RESET);
}
struct usb_request *usb_request_new(struct usb_device *dev,
const struct usb_endpoint_descriptor *ep_desc)
{