sysfsgpio: enable only the transport specific gpio
commited17994757661ed7a32cd9ad59aa001e5cd22692
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 1 Apr 2020 09:37:54 +0000 (1 11:37 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Mon, 13 Jul 2020 23:38:28 +0000 (14 00:38 +0100)
tree846d38a05799176e90ac752b24c7e70686e87f57
parent964680ecff5b252839f61f9328658339d9090bff
sysfsgpio: enable only the transport specific gpio

If the configuration file specifies both SWD and JTAG gpios, the
current code request all of them. In case of overlap a warning is
generated when the same gpio is released for the second time.

Require and release only the gpio needed by the specified
transport.

Change-Id: I41a0970980ceeb559afa98ab34cfe93dffed2e1c
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5556
Tested-by: jenkins
src/jtag/drivers/sysfsgpio.c