commit | b4f54266042f0553b41409a3d1f0542b684c2129 | [log] [tgz] |
---|---|---|
author | Jerry Zhang <zhangjerry@google.com> | Thu Feb 02 18:14:33 2017 -0800 |
committer | Jerry Zhang <zhangjerry@google.com> | Mon Feb 06 12:01:56 2017 -0800 |
tree | cf18305909249f4ff86438b8bc3f32791c0fa8ae | |
parent | 4418030f45cca8cad25051f49b142988fb635037 [diff] |
Retry allocations in case of ENODEV Unlike the read() and write() calls, the ioctl() call does not wait for endpoints to be enabled, which is problematic if ioctls() are the first calls on the usb connection, since they may be called before the endpoints are set up. We'll have to retry if this causes them to fail. Bug: 34822471 Test: Change configs to mtp and ptp Change-Id: I89610b9614c33f0b22535cc68cd0c9b502cb55c9