diff options
author | Nick Pelly <npelly@google.com> | 2010-07-22 10:59:55 -0700 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2010-07-22 10:59:55 -0700 |
commit | 286d50fe34edef9b93cde6a3e2d052b2b96d071c (patch) | |
tree | d37e64724b1f977d0e7ff2d2dd79cdc4c02dd965 /fastboot | |
parent | 29a96aff5f8b3e4370684064f6a72b33b5d71785 (diff) | |
download | system_core-286d50fe34edef9b93cde6a3e2d052b2b96d071c.zip system_core-286d50fe34edef9b93cde6a3e2d052b2b96d071c.tar.gz system_core-286d50fe34edef9b93cde6a3e2d052b2b96d071c.tar.bz2 |
Allow OSX fastboot to work with more devices.
ClearPipeStallBothEnds() appears to fail on some devices, but if we ignore
that error then fastboot does work. So ignore the error.
Change-Id: Ic866ece28a57c081e34079e1a032fa8155301ddf
Diffstat (limited to 'fastboot')
-rw-r--r-- | fastboot/usb_osx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fastboot/usb_osx.c b/fastboot/usb_osx.c index 9488687..570a456 100644 --- a/fastboot/usb_osx.c +++ b/fastboot/usb_osx.c @@ -231,8 +231,7 @@ static int try_interfaces(IOUSBDeviceInterface182 **dev, usb_handle *handle) { kr = (*interface)->ClearPipeStallBothEnds(interface, handle->bulkIn); if (kr != 0) { - ERR("could not clear input pipe; result %d", kr); - return -1; + ERR("could not clear input pipe; result %x, ignoring...\n", kr); } } @@ -240,8 +239,7 @@ static int try_interfaces(IOUSBDeviceInterface182 **dev, usb_handle *handle) { kr = (*interface)->ClearPipeStallBothEnds(interface, handle->bulkOut); if (kr != 0) { - ERR("could not clear output pipe; result %d", kr); - return -1; + ERR("could not clear output pipe; result %x, ignoring....\n", kr); } } |