diff options
author | Keun-young Park <keunyoung@google.com> | 2016-01-12 18:22:36 -0800 |
---|---|---|
committer | Keun-young Park <keunyoung@google.com> | 2016-01-13 16:01:42 -0800 |
commit | f6411fa1ecf3a87ce78800660752f57ba9b67836 (patch) | |
tree | abe6314bf798ec55ebfca27a8c8a9d55ca9f88a0 /libusbhost | |
parent | 34965eb1186041639a3e17057d7414c408ddd559 (diff) | |
download | core-f6411fa1ecf3a87ce78800660752f57ba9b67836.tar.gz core-f6411fa1ecf3a87ce78800660752f57ba9b67836.tar.bz2 core-f6411fa1ecf3a87ce78800660752f57ba9b67836.zip |
libusbhost: add usb_device_reset
bug: 26404209
Change-Id: I8f307d6683afe70fe334746f5be2856b79782493
Diffstat (limited to 'libusbhost')
-rw-r--r-- | libusbhost/usbhost.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libusbhost/usbhost.c b/libusbhost/usbhost.c index b8e32154f..299fdc475 100644 --- a/libusbhost/usbhost.c +++ b/libusbhost/usbhost.c @@ -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) { |