From: Nathan Hjelm Date: Sat, 29 Sep 2012 03:18:08 +0000 (-0600) Subject: Darwin: Reduce attempts to retrieve a device descriptor during enumeration X-Git-Tag: upstream/1.0.21~571 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e31465ab7d83b5a5b68f5f9d27d6c77caa07b8b;p=platform%2Fupstream%2Flibusb.git Darwin: Reduce attempts to retrieve a device descriptor during enumeration --- diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c index 63c2bae..bfe1b68 100644 --- a/libusb/os/darwin_usb.c +++ b/libusb/os/darwin_usb.c @@ -1,6 +1,6 @@ /* * darwin backend for libusbx 1.0 - * Copyright © 2008-2011 Nathan Hjelm + * Copyright © 2008-2012 Nathan Hjelm * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -595,7 +595,7 @@ static int darwin_check_configuration (struct libusb_context *ctx, struct libusb static int darwin_cache_device_descriptor (struct libusb_context *ctx, struct libusb_device *dev, usb_device_t **device) { struct darwin_device_priv *priv; - int retries = 5, delay = 30000; + int retries = 2, delay = 30000; int unsuspended = 0, try_unsuspend = 1, try_reconfigure = 1; int is_open = 0; int ret = 0, ret2; diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 355feae..eec903c 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10580 +#define LIBUSB_NANO 10581