From: OpenOCD-Gerrit <ope...@us...> - 2020-03-12 10:06:00
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via fbbfbb2516a58b2ab866d713ef18c0a210bb647b (commit) from 2e1dfebc8e62376e0ae3e55ac776149bed462330 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit fbbfbb2516a58b2ab866d713ef18c0a210bb647b Author: Antonio Borneo <bor...@gm...> Date: Mon Feb 3 16:48:40 2020 +0100 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 <leo...@nx...> Signed-off-by: Antonio Borneo <bor...@gm...> Reviewed-on: http://openocd.zylin.com/5431 Tested-by: jenkins Reviewed-by: Leonard Crestez <leo...@nx...> Reviewed-by: Tomas Vanek <va...@fb...> diff --git a/src/jtag/drivers/ftdi.c b/src/jtag/drivers/ftdi.c index a9cdbbe1e..121cb469f 100644 --- a/src/jtag/drivers/ftdi.c +++ b/src/jtag/drivers/ftdi.c @@ -550,8 +550,7 @@ static int ftdi_reset(int trst, int srst) ftdi_set_signal(sig_nsrst, 'z'); } - LOG_DEBUG_IO("trst: %i, srst: %i", trst, srst); - return ERROR_OK; + return mpsse_flush(mpsse_ctx); } static void ftdi_execute_sleep(struct jtag_command *cmd) ----------------------------------------------------------------------- Summary of changes: src/jtag/drivers/ftdi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) hooks/post-receive -- Main OpenOCD repository |