hla: Get stlink device back to known state at startup
authorKeith Packard <keithp@keithp.com>
Sun, 8 Dec 2013 06:57:37 +0000 (22:57 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 28 Feb 2014 21:13:20 +0000 (13:13 -0800)
commitfb803581830ca78eff59e8c8a24192c36bd63c8d
tree99b33569eabbe12a1c0d32552813433c300527a6
parent9592bdd27318502d355c7003926809f8d861583c
hla: Get stlink device back to known state at startup

Figure out the current mode and leave it so that the device is in a
known state.

Some devices appear to not return data from the first request, so
retry it a couple of times to see if we can't smack the device back
into shape.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/jtag/drivers/stlink_usb.c