This is an automated email from Gerrit.

Antonio Borneo ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/5431

-- gerrit

commit adbbd6489eb75cb53777bbdf2a75b2f91c7e29c8
Author: Antonio Borneo <[email protected]>
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 <[email protected]>
    Signed-off-by: Antonio Borneo <[email protected]>

diff --git a/src/jtag/drivers/ftdi.c b/src/jtag/drivers/ftdi.c
index 40d076e..dbab92e 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)

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to