Revert "mpsse: Always perform a general reset of the MPSSE in mpsse_open()"
This reverts commit 452248af1d
. This change
breaks all non-high speed adapters. The patch was not tested and did not get
any review.
Change-Id: Ib38fd242a202fd7c5a8711d9f857cd8f586df44e
Signed-off-by: Freddie Chopin <freddie.chopin@gmail.com>
Reviewed-on: http://openocd.zylin.com/973
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
__archive__
parent
aa8e480ec4
commit
08ddb19fd3
|
@ -55,7 +55,6 @@
|
|||
#define FTDI_DEVICE_OUT_REQTYPE (LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_DEVICE)
|
||||
#define FTDI_DEVICE_IN_REQTYPE (0x80 | LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_DEVICE)
|
||||
|
||||
#define BITMODE_RESET 0x00
|
||||
#define BITMODE_MPSSE 0x02
|
||||
|
||||
#define SIO_RESET_REQUEST 0x00
|
||||
|
@ -313,19 +312,6 @@ struct mpsse_ctx *mpsse_open(const uint16_t *vid, const uint16_t *pid, const cha
|
|||
goto error;
|
||||
}
|
||||
|
||||
err = libusb_control_transfer(ctx->usb_dev,
|
||||
FTDI_DEVICE_OUT_REQTYPE,
|
||||
SIO_SET_BITMODE_REQUEST,
|
||||
0x0b | (BITMODE_RESET << 8),
|
||||
ctx->index,
|
||||
NULL,
|
||||
0,
|
||||
ctx->usb_write_timeout);
|
||||
if (err < 0) {
|
||||
LOG_ERROR("unable to reset bitmode: %d", err);
|
||||
goto error;
|
||||
}
|
||||
|
||||
err = libusb_control_transfer(ctx->usb_dev,
|
||||
FTDI_DEVICE_OUT_REQTYPE,
|
||||
SIO_SET_BITMODE_REQUEST,
|
||||
|
|
Loading…
Reference in New Issue