jtag/drivers/openjtag: fix annoying num_cycles > 16 warning
commit20285b91008106c9fa966cea3269c6f6a81e539a
authorN S <nlshipp@yahoo.com>
Sat, 24 Dec 2022 00:59:18 +0000 (23 16:59 -0800)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 28 Jan 2023 15:52:54 +0000 (28 15:52 +0000)
tree67da3b82c3879804303e19e35ced47e37edc0c3f
parentd032e7ec8c2978feda5df2ca7c4ddbcaec2fcbf5
jtag/drivers/openjtag: fix annoying num_cycles > 16 warning

The OpenJTAG driver logs "num_cycles > 16 on run test" warning
whenever the JTAG_RUNTEST operation cycle count is larger than 16.

Instead of logging the warning and only running the first 16 TCLK
cycles, remove the warning and queue up multiple operations of up
to 16 cycles each.

Signed-off-by: N S <nlshipp@yahoo.com>
Change-Id: Id405fa802ff1cf3db7a21e76bd6df0c2d3a0fe61
Reviewed-on: https://review.openocd.org/c/openocd/+/7420
Tested-by: jenkins
Reviewed-by: Jonathan McDowell <noodles-openocd@earth.li>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/jtag/drivers/openjtag.c