I've noticed strange behaviour in initialization with TI OMAP4430 and
Freescale iMX53 using Amontec JTAGKEY. Even typing keys on OpenOCD shell
was very very slow.
I didn't investigate too much the causes. Anyway this patch fix it.

Signed-off-by: Luca Ellero <[email protected]>
---
 src/jtag/core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/jtag/core.c b/src/jtag/core.c
index 4c5d37a..ad662ef 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -1369,12 +1369,12 @@ int adapter_init(struct command_context *cmd_ctx)
        }
 
        int retval;
+       jtag = jtag_interface;
        retval = jtag_interface->init();
        if (retval != ERROR_OK)
        {
                return retval;
        }
-       jtag = jtag_interface;
 
        /* LEGACY SUPPORT ... adapter drivers  must declare what
         * transports they allow.  Until they all do so, assume
-- 
1.6.4.4

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to