jtag: sysfsgpio: clean up swd gpios

All SWD GPIOs should be un-exported when no longer needed, not just
srst.

Change-Id: I998377afe43b72446cab3da2d4406fc2912ff8c3
Signed-off-by: Reto Schneider <code@reto-schneider.ch>
Reviewed-on: http://openocd.zylin.com/4784
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
log_output
Reto Schneider 2018-12-02 06:14:27 +00:00 committed by Spencer Oliver
parent 8f47a09cc5
commit a50964246d
1 changed files with 2 additions and 0 deletions

View File

@ -561,6 +561,8 @@ static void cleanup_all_fds(void)
cleanup_fd(tdo_fd, tdo_gpio); cleanup_fd(tdo_fd, tdo_gpio);
cleanup_fd(trst_fd, trst_gpio); cleanup_fd(trst_fd, trst_gpio);
cleanup_fd(srst_fd, srst_gpio); cleanup_fd(srst_fd, srst_gpio);
cleanup_fd(swclk_fd, swclk_gpio);
cleanup_fd(swdio_fd, swdio_gpio);
} }
static bool sysfsgpio_jtag_mode_possible(void) static bool sysfsgpio_jtag_mode_possible(void)