selection of transport should happen at the same stage regardless of how many transports an interface supports.
Signed-off-by: Øyvind Harboe <[email protected]> --- src/jtag/transport.c | 17 +++++------------ 1 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/jtag/transport.c b/src/jtag/transport.c index cee8ffb..cd6751c 100644 --- a/src/jtag/transport.c +++ b/src/jtag/transport.c @@ -1,6 +1,8 @@ /* * Copyright (c) 2010 by David Brownell * + * Copyright (c) 2010 by Øyvind Harboe + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -91,8 +93,7 @@ static int transport_select(struct command_context *ctx, const char *name) /** * Called by debug adapter drivers, or affiliated Tcl config scripts, - * to declare the set of transports supported by an adapter. When - * there is only one member of that set, it is automatically selected. + * to declare the set of transports supported by an adapter. */ int allow_transports(struct command_context *ctx, const char **vector) { @@ -110,16 +111,8 @@ int allow_transports(struct command_context *ctx, const char **vector) allowed_transports = vector; - /* autoselect if there's no choice ... */ - if (!vector[1]) { - LOG_INFO("only one transport option; autoselect '%s'", - vector[0]); - return transport_select(ctx, vector [0]); - } else { - while (*vector) - LOG_DEBUG("allow transport '%s'", *vector++); - return ERROR_OK; - } + /* do not select transports at this time */ + return ERROR_OK; } -- 1.6.3.3 _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
