ao-tools: Wait for device to become ready instead of failing
authorKeith Packard <keithp@keithp.com>
Sat, 5 Apr 2014 06:38:40 +0000 (23:38 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 5 Apr 2014 07:22:30 +0000 (00:22 -0700)
commitca4b20f9781b1dc6974d26952973dfe0d607478c
tree434d89d5a3dd5124718807038829469c193efcba
parent2424c0e6fe53789dc83d1e96439dcdc13e847b07
ao-tools: Wait for device to become ready instead of failing

For some reason, USB devices take 'a while' to become usable; instead
of bailing immediately, sit around waiting to see if the device
becomes usable if we get an EBUSY or EACCES error.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/lib/cc-usb.c