ftdi: flush mpsse queue after a level change on reset pins
authorAntonio Borneo <borneo.antonio@gmail.com>
Mon, 3 Feb 2020 15:48:40 +0000 (16:48 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Thu, 12 Mar 2020 10:05:09 +0000 (10:05 +0000)
commitfbbfbb2516a58b2ab866d713ef18c0a210bb647b
treea79d0168690db93b91ba818b5ec6cf5d886a6aed
parent2e1dfebc8e62376e0ae3e55ac776149bed462330
ftdi: flush mpsse queue after a level change on reset pins

The function ftdi_set_signal() does not propagate the pin change
until next call to mpsse_flush(). Current code does not toggles
immediately the reset pins if polling is turned off.

Call mpsse_flush() at the end of ftdi_reset().
While there, remove the duplicated LOG message.

Change-Id: I79eacfe4fc32b5cdf2dc1b78f3660d96988466bc
Fixes: 8850eb8f2c51 ("swd: get rid of jtag queue to assert/deassert srst")
Reported-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5431
Tested-by: jenkins
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/jtag/drivers/ftdi.c