riscv-openocd/src
Tomas Vanek 23796efa38 drivers/cmsis_dap: use blocking flag instead of wait timeout
CMSIS-DAP bulk backend read op used two timeouts: transfer timeout
used in libusb_fill_bulk_transfer() and wait timeout used optionally
in libusb_handle_events_timeout_completed().

The real usage is limited to two cases only:
1) blocking read: the same timeout is used for both transfer
and wait
2) non-blocking read: transfer timeout is used in
libusb_fill_bulk_transfer(),
libusb_handle_events_timeout_completed() is called with zero timeout.

Use blocking flag as read op parameter to distinguish between
these two cases.

See also [1]

Link: [1] 8596: jtag: cmsis_dap: include helper/time_support.h | https://review.openocd.org/c/openocd/+/8596
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Change-Id: Ia755f17dc72bb9ce8e02065fee6a064f8eec6661
Reviewed-on: https://review.openocd.org/c/openocd/+/8639
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2025-01-09 20:15:33 +00:00
..
flash flash/stm32l4x: add STM32C071xx support 2025-01-06 05:01:21 +00:00
helper helper/log: Add LOG_TARGET_USER() 2024-12-30 15:57:01 +00:00
jtag drivers/cmsis_dap: use blocking flag instead of wait timeout 2025-01-09 20:15:33 +00:00
pld pld: make get_pld_device_by_num() static 2024-11-23 13:46:59 +00:00
rtos rtos/rtos: Remove 'ERROR: ' prefix in error log 2024-12-22 09:55:56 +00:00
rtt rtt: drop unused function rtt_started() 2024-11-23 13:46:35 +00:00
server rtt server: fix for dropped data when target has no space 2024-12-22 09:43:37 +00:00
svf openocd: convert 'unsigned' to 'unsigned int' 2024-10-05 15:46:25 +00:00
target target/arc: Use LOG_TARGET_xxx() 2024-12-30 15:58:26 +00:00
transport openocd: convert 'unsigned' to 'unsigned int' 2024-10-05 15:46:25 +00:00
xsvf openocd: convert 'unsigned' to 'unsigned int' 2024-10-05 15:46:25 +00:00
Makefile.am configure: Use pkg-config for jimtcl 2024-08-02 15:59:07 +00:00
hello.c hello: include hello.h 2023-05-18 10:13:41 +00:00
hello.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00
main.c openocd: fix SPDX tag format for files .c 2022-09-18 08:22:01 +00:00
openocd.c autoconf: Add support for code coverage 2024-11-16 14:18:57 +00:00
openocd.h openocd: src: replace the GPL-2.0-or-later license tag 2022-07-23 13:59:13 +00:00