This is an automated email from Gerrit.

Reto Schneider (c...@reto-schneider.ch) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/4784

-- gerrit

commit 1311279c9f58e50aee0df48d28947009626c3f8e
Author: Reto Schneider <c...@reto-schneider.ch>
Date:   Sun Dec 2 06:14:27 2018 +0000

    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 <c...@reto-schneider.ch>

diff --git a/src/jtag/drivers/sysfsgpio.c b/src/jtag/drivers/sysfsgpio.c
index 5535c71..24dc4bc 100644
--- a/src/jtag/drivers/sysfsgpio.c
+++ b/src/jtag/drivers/sysfsgpio.c
@@ -561,6 +561,8 @@ static void cleanup_all_fds(void)
        cleanup_fd(tdo_fd, tdo_gpio);
        cleanup_fd(trst_fd, trst_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)

-- 


_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to