]> git.sur5r.net Git - openocd/commit
jtag/drivers/libusb1_common: avoid device reset when reselecting configuration
authorAnders <anders@openpuma.org>
Thu, 2 Oct 2014 02:42:33 +0000 (19:42 -0700)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 6 Oct 2014 11:58:32 +0000 (11:58 +0000)
commitca8f8e7e77ec2263044288e540c7276155155a48
treecc484497eae7710f93e237be7a772bd953d5dfaf
parent48a681c741993e61f2a9404b75b73d011b9e184e
jtag/drivers/libusb1_common: avoid device reset when reselecting configuration

According to [1], we shouldn't reselect an already active configuration to avoid needless device reset. This is known to cause issues with e.g. LPC Link2 with JLink firmware.

[1] http://libusb.sourceforge.net/api-1.0/caveats.html#configsel

Change-Id: I3568ada77780a521548c450090db7173f8d0b2dd
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Anders Oleson <anders@openpuma.org>
Reviewed-on: http://openocd.zylin.com/2288
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/libusb1_common.c