This is an automated email from Gerrit.

Andrey Smirnov ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/2060

-- gerrit

commit faf2cd7bb9daeac97eb1ead3ddddea5e89df1386
Author: Andrey Smirnov <[email protected]>
Date:   Fri Mar 21 06:14:08 2014 -0700

    libusb1: Use active configuration to get endpoints
    
    Old version of jtag_libusb_get_endpoints would always fetch
    configuration #0 to scan through its interfaces for endpoints. Change
    it to fetch active configuration instead, so that if for example
    jtag_libusb_set_configuration was called before,
    jtag_libusb_get_endpoints would not ignore the possible change of
    active configuration.
    
    Change-Id: I5a80010d71fcc0a7f1f302d34eebdc532c157fc4
    Signed-off-by: Andrey Smirnov <[email protected]>

diff --git a/src/jtag/drivers/libusb1_common.c 
b/src/jtag/drivers/libusb1_common.c
index d5efbf7..bfbc024 100644
--- a/src/jtag/drivers/libusb1_common.c
+++ b/src/jtag/drivers/libusb1_common.c
@@ -154,7 +154,9 @@ int jtag_libusb_get_endpoints(struct jtag_libusb_device 
*udev,
        const struct libusb_endpoint_descriptor *epdesc;
        struct libusb_config_descriptor *config;
 
-       ret = libusb_get_config_descriptor(udev, 0, &config);
+
+
+       ret = libusb_get_active_config_descriptor(udev, &config);
        if (ret != 0) {
                /* FIXME: It this codepathe is taken through a call
                   from struct jtag_intergace -> init then this would

-- 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to