This is an automated email from Gerrit.

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

-- gerrit

commit 2ebc9f6e0f48d7c8c1850d8d8774fee69c96ff73
Author: Tomas Vanek <[email protected]>
Date:   Sun May 17 08:17:25 2020 +0200

    flash/nor/jtagspi: propagate error from jtag_execute_queue()
    
    Change-Id: Ib985bdf3d60345a1e701f9cc98f89a47ff74d3e2
    Signed-off-by: Tomas Vanek <[email protected]>

diff --git a/src/flash/nor/jtagspi.c b/src/flash/nor/jtagspi.c
index f6e311a..01fdef6 100644
--- a/src/flash/nor/jtagspi.c
+++ b/src/flash/nor/jtagspi.c
@@ -153,12 +153,12 @@ static int jtagspi_cmd(struct flash_bank *bank, uint8_t 
cmd,
        jtagspi_set_ir(bank);
        /* passing from an IR scan to SHIFT-DR clears BYPASS registers */
        jtag_add_dr_scan(info->tap, n, fields, TAP_IDLE);
-       jtag_execute_queue();
+       int retval = jtag_execute_queue();
 
        if (is_read)
                flip_u8(data_buf, data, lenb);
        free(data_buf);
-       return ERROR_OK;
+       return retval;
 }
 
 static int jtagspi_probe(struct flash_bank *bank)

-- 


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

Reply via email to