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/6155
-- gerrit commit 7de65a2c65eae5483dac6f64c923a9e696c37922 Author: Antonio Borneo <[email protected]> Date: Wed Apr 7 15:25:37 2021 +0200 drivers/ftdi: allow 'ftdi_layout_signal' only during config The command 'ftdi_layout_signal' is supposed to be used during the configuration phase only, and in the documentation added in [2] it was also introduced as '{Config Command}'. But its 'mode' was set as COMMAND_ANY in [1]. Set the command's mode to COMMAND_CONFIG. [1] commit f5e97b5e1b62 ("Add FTDI JTAG driver using MPSSE layer") [2] commit 76afadeb7b4e ("doc: Add documentation for the ftdi driver") Change-Id: I6b14aebb98e48f7080c585f3df881714bb188af0 Signed-off-by: Antonio Borneo <[email protected]> diff --git a/src/jtag/drivers/ftdi.c b/src/jtag/drivers/ftdi.c index 9e47d3c..f577e8e 100644 --- a/src/jtag/drivers/ftdi.c +++ b/src/jtag/drivers/ftdi.c @@ -964,7 +964,7 @@ static const struct command_registration ftdi_command_handlers[] = { { .name = "ftdi_layout_signal", .handler = &ftdi_handle_layout_signal_command, - .mode = COMMAND_ANY, + .mode = COMMAND_CONFIG, .help = "define a signal controlled by one or more FTDI GPIO as data " "and/or output enable", .usage = "name [-data mask|-ndata mask] [-oe mask|-noe mask] [-alias|-nalias name]", --
