commit | 6a4a38525d60db7e915d559273d8c89db5a98edf | [log] [tgz] |
---|---|---|
author | Benoit Goby <benoit@android.com> | Mon Nov 28 18:01:03 2011 -0800 |
committer | Benoit Goby <benoit@android.com> | Mon Nov 28 19:02:13 2011 -0800 |
tree | 76e5898610f63f6b88c44d22798ed1338a2b5717 | |
parent | dbb18fb2c1519b7810018580ee5123f9be73f213 [diff] |
usb: gadget: android: Reset next_string_id before enable Reset next_string_id to 0 before enabling the gadget driver. Otherwise, after a large number of enable/disable cycles, bind will fail because we cannot allocate new string ids. String ids cannot be larger than 254 per USB spec. Change-Id: I44f5fece45008b7a0a18c025d4eb5ce842585c28 Signed-off-by: Benoit Goby <benoit@android.com>