diff options
author | Mike Lockwood <lockwood@android.com> | 2011-01-22 09:17:07 -0800 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2011-01-22 14:10:04 -0800 |
commit | ec9e7b1c1844e66c39a4f63ded8208c1717380f8 (patch) | |
tree | f640b5bf5b20d956d5c4b93f0b1d69402c79de9f /include/usbhost | |
parent | 0897a4353ec74e05d4be23eb422080d4ad9c7c30 (diff) | |
download | core-ec9e7b1c1844e66c39a4f63ded8208c1717380f8.tar.gz core-ec9e7b1c1844e66c39a4f63ded8208c1717380f8.tar.bz2 core-ec9e7b1c1844e66c39a4f63ded8208c1717380f8.zip |
libusbhost: Add usb_device_connect_kernel_driver()
This can be used to ask the kernel to disconnect its driver for a device
so usb_device_claim_interface() can claim it instead.
Also increased size of descriptor buffer and added some debugging logs
Change-Id: I4945196d957fb8493716eb9b7e5463c06b168ef1
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include/usbhost')
-rw-r--r-- | include/usbhost/usbhost.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/usbhost/usbhost.h b/include/usbhost/usbhost.h index 7ef7aceba..41e2ddc42 100644 --- a/include/usbhost/usbhost.h +++ b/include/usbhost/usbhost.h @@ -177,6 +177,13 @@ int usb_device_claim_interface(struct usb_device *device, unsigned int interface /* Releases the specified interface of a USB device */ int usb_device_release_interface(struct usb_device *device, unsigned int interface); +/* Requests the kernel to connect or disconnect its driver for the specified interface. + * This can be used to ask the kernel to disconnect its driver for a device + * so usb_device_claim_interface can claim it instead. + */ +int usb_device_connect_kernel_driver(struct usb_device *device, + unsigned int interface, int connect); + /* Creates a new usb_request. */ struct usb_request *usb_request_new(struct usb_device *dev, const struct usb_endpoint_descriptor *ep_desc); |