<feed xmlns='http://www.w3.org/2005/Atom'>
<title>system_core/libusbhost/usbhost.c, branch replicant-6.0</title>
<subtitle>system/core
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/'/>
<entry>
<title>libusbhost: Fix problem reading USB string descriptors on some quirky devices</title>
<updated>2015-06-18T20:38:31+00:00</updated>
<author>
<name>Mike Lockwood</name>
<email>lockwood@google.com</email>
</author>
<published>2015-06-18T20:38:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=0dd1aab7b5184f41ec838def8493d16cfe70b739'/>
<id>0dd1aab7b5184f41ec838def8493d16cfe70b739</id>
<content type='text'>
Some devices fail to send USB string descriptors if you attempt to read more
than 255 bytes

Bug: 21871761
Change-Id: Id5b8865179f80523f0ad5b6028d49dd99db2b36b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some devices fail to send USB string descriptors if you attempt to read more
than 255 bytes

Bug: 21871761
Change-Id: Id5b8865179f80523f0ad5b6028d49dd99db2b36b
</pre>
</div>
</content>
</entry>
<entry>
<title>libusbhost: Add usb_device_get_version()</title>
<updated>2015-04-29T20:04:10+00:00</updated>
<author>
<name>Mike Lockwood</name>
<email>lockwood@google.com</email>
</author>
<published>2015-04-29T20:04:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=f68600abfc7f1e2d64a4737630feea43bdaa85dc'/>
<id>f68600abfc7f1e2d64a4737630feea43bdaa85dc</id>
<content type='text'>
Change-Id: If2161178e9fe94a94faf01c102ef64f2a72d093b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: If2161178e9fe94a94faf01c102ef64f2a72d093b
</pre>
</div>
</content>
</entry>
<entry>
<title>am 0d8943c2: am e4c5b614: Merge "libusbhost: Fix IOCTL call during usb_request_cancel"</title>
<updated>2014-08-12T21:05:43+00:00</updated>
<author>
<name>Badhri Jagan Sridharan</name>
<email>badhri@google.com</email>
</author>
<published>2014-08-12T21:05:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=754358aa80610b9d969a91b5cf96206b7a0b5153'/>
<id>754358aa80610b9d969a91b5cf96206b7a0b5153</id>
<content type='text'>
* commit '0d8943c252a21390c63a16ae0f9f1459c3212163':
  libusbhost: Fix IOCTL call during usb_request_cancel
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* commit '0d8943c252a21390c63a16ae0f9f1459c3212163':
  libusbhost: Fix IOCTL call during usb_request_cancel
</pre>
</div>
</content>
</entry>
<entry>
<title>libusbhost: Fix IOCTL call during usb_request_cancel</title>
<updated>2014-08-07T21:58:31+00:00</updated>
<author>
<name>Badhri Jagan Sridharan</name>
<email>badhri@google.com</email>
</author>
<published>2014-08-06T19:34:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=ef4087bf2b20dfa44c7e33c1544d29cfdcd656e7'/>
<id>ef4087bf2b20dfa44c7e33c1544d29cfdcd656e7</id>
<content type='text'>
USBDEVFS_DISCARDURB IOCTL call expects a pointer to the
the urb structure to be passed from userspace. LibusbHost
instead sends usbdevfs_urb**. Change this to usbdevfs_urb*.

Fixes Issue: https://code.google.com/p/android/issues/detail?id=74530

Change-Id: Ifb8a13857e1a9f62536f2a07c0965e9c419b7d4c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
USBDEVFS_DISCARDURB IOCTL call expects a pointer to the
the urb structure to be passed from userspace. LibusbHost
instead sends usbdevfs_urb**. Change this to usbdevfs_urb*.

Fixes Issue: https://code.google.com/p/android/issues/detail?id=74530

Change-Id: Ifb8a13857e1a9f62536f2a07c0965e9c419b7d4c
</pre>
</div>
</content>
</entry>
<entry>
<title>am 0a90004b: am cae898ac: am 3754791d: Merge "libusbhost: Fix issue of multiple inotify event at same time."</title>
<updated>2014-05-01T23:16:12+00:00</updated>
<author>
<name>JP Abgrall</name>
<email>jpa@google.com</email>
</author>
<published>2014-05-01T23:16:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=585ca2a3de439751999eedb2d8ede2ce5cf59a0e'/>
<id>585ca2a3de439751999eedb2d8ede2ce5cf59a0e</id>
<content type='text'>
* commit '0a90004be8aba909391b25643ba943db76660fe4':
  libusbhost: Fix issue of multiple inotify event at same time.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* commit '0a90004be8aba909391b25643ba943db76660fe4':
  libusbhost: Fix issue of multiple inotify event at same time.
</pre>
</div>
</content>
</entry>
<entry>
<title>libusbhost: Fix issue of multiple inotify event at same time.</title>
<updated>2014-04-25T05:56:38+00:00</updated>
<author>
<name>Bo Huang</name>
<email>bo.b.huang@intel.com</email>
</author>
<published>2014-01-21T06:25:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=3c1d7b34c151ec1669e0d190a0839718242682c9'/>
<id>3c1d7b34c151ec1669e0d190a0839718242682c9</id>
<content type='text'>
libusbhost can handle multiple inotify events at same time on Kit kat.
In original implementation, the function-level ret is assigned with
length of read and used for while loop.
if want to add a new watch for subdirectory,inotify_add_watch will
update the function-level ret with watch descriptor.
It impact on while loop to do exit.

Add local result to avoid it.

Change-Id: I101041ccfd54eaac14969a45e90ab2e49bdff578
Signed-off-by: Bo Huang &lt;bo.b.huang@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
libusbhost can handle multiple inotify events at same time on Kit kat.
In original implementation, the function-level ret is assigned with
length of read and used for while loop.
if want to add a new watch for subdirectory,inotify_add_watch will
update the function-level ret with watch descriptor.
It impact on while loop to do exit.

Add local result to avoid it.

Change-Id: I101041ccfd54eaac14969a45e90ab2e49bdff578
Signed-off-by: Bo Huang &lt;bo.b.huang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libusbhost: Add usb_device_set_configuration and usb_device_set_interface</title>
<updated>2014-01-13T17:54:13+00:00</updated>
<author>
<name>Mike Lockwood</name>
<email>lockwood@google.com</email>
</author>
<published>2014-01-13T17:54:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=d2e798b53039f35967705acd5f6c399742f97e72'/>
<id>d2e798b53039f35967705acd5f6c399742f97e72</id>
<content type='text'>
usb_device_set_configuration is to support devices with multiple configurations
usb_device_set_interface supports switching between interfaces with alternate settings

Also moved zero string index checking to usb_device_get_string

Change-Id: I34610b25f135894a0cf752a33e5738d4314d7122
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
usb_device_set_configuration is to support devices with multiple configurations
usb_device_set_interface supports switching between interfaces with alternate settings

Also moved zero string index checking to usb_device_get_string

Change-Id: I34610b25f135894a0cf752a33e5738d4314d7122
</pre>
</div>
</content>
</entry>
<entry>
<title>libusbhost: It's no longer assumed that "bus/usb" exists once "bus" was created</title>
<updated>2013-08-26T21:56:39+00:00</updated>
<author>
<name>Ziv Hendel</name>
<email>ziv@primesense.com</email>
</author>
<published>2013-08-07T16:29:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=8cc80fc8944142c610c5816ced4f0d0518b3922f'/>
<id>8cc80fc8944142c610c5816ced4f0d0518b3922f</id>
<content type='text'>
On some devices there is a slight delay between the creation of "/dev/bus"
and "/dev/bus/usb". Previously, the code assumed that both are created in the
same time which caused "watch_existing_subdirs" to fail and libusbhost to stop
working until the device is rebooted. The fix will setup an inotify event on the
creation of the "bus/usb" so it will not be missed once it's created.

Change-Id: I17f06dd167e61573307425e48898e12ebc954093
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On some devices there is a slight delay between the creation of "/dev/bus"
and "/dev/bus/usb". Previously, the code assumed that both are created in the
same time which caused "watch_existing_subdirs" to fail and libusbhost to stop
working until the device is rebooted. The fix will setup an inotify event on the
creation of the "bus/usb" so it will not be missed once it's created.

Change-Id: I17f06dd167e61573307425e48898e12ebc954093
</pre>
</div>
</content>
</entry>
<entry>
<title>libusbhost: It's no longer assumed that "bus/usb" exists once "bus" was created</title>
<updated>2013-08-21T00:51:13+00:00</updated>
<author>
<name>Ziv Hendel</name>
<email>ziv@primesense.com</email>
</author>
<published>2013-08-07T16:29:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=a306ced1ac383557dabfb38c70e5f5e2a2ec0510'/>
<id>a306ced1ac383557dabfb38c70e5f5e2a2ec0510</id>
<content type='text'>
On some devices there is a slight delay between the creation of "/dev/bus"
and "/dev/bus/usb". Previously, the code assumed that both are created in the
same time which caused "watch_existing_subdirs" to fail and libusbhost to stop
working until the device is rebooted. The fix will setup an inotify event on the
creation of the "bus/usb" so it will not be missed once it's created.

Change-Id: I17f06dd167e61573307425e48898e12ebc954093
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On some devices there is a slight delay between the creation of "/dev/bus"
and "/dev/bus/usb". Previously, the code assumed that both are created in the
same time which caused "watch_existing_subdirs" to fail and libusbhost to stop
working until the device is rebooted. The fix will setup an inotify event on the
creation of the "bus/usb" so it will not be missed once it's created.

Change-Id: I17f06dd167e61573307425e48898e12ebc954093
</pre>
</div>
</content>
</entry>
<entry>
<title>Properly handle cases of multiple inotify events</title>
<updated>2013-03-25T21:12:18+00:00</updated>
<author>
<name>Ziv Hendel</name>
<email>ziv@primesense.com</email>
</author>
<published>2013-03-24T16:10:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant/system_core/commit/?id=f75ea8d082ff39e316bd4d73979b610cc4b5e4bc'/>
<id>f75ea8d082ff39e316bd4d73979b610cc4b5e4bc</id>
<content type='text'>
Bug: 8469799
Change-Id: Ie10242dd05becd142cc84651d5e5795e4c02270d
Signed-off-by: Igor Murashkin &lt;iam@google.com&gt;
Signed-off-by: Adam Hampson &lt;ahampson@google.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 8469799
Change-Id: Ie10242dd05becd142cc84651d5e5795e4c02270d
Signed-off-by: Igor Murashkin &lt;iam@google.com&gt;
Signed-off-by: Adam Hampson &lt;ahampson@google.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
