Created a CL at https://review.openocd.org/c/openocd/+/6882
Sounds good. I agree, Antonio, a systematic change would be the most appropriate. How about adding the timeout value to jtag/drivers/libusb_helper.h? and have cmsis_dap and jaylink include that instead of each defining their own? This change would be fairly simple (although I'm not sure how appropriate this header file is) Do you want me to take a stab at it? If yes, can you share how to set up git and gerrit with the proper access permissions?
Yes, Antonio, your understanding is correct. I've tried moving to different USB buses, which fixes this issue. However, I need all my devices to be plugged into the same programmable USB hub, which can do a power-on-reset when I'm working remotely. dmesg def spits out a bunch of errors about not being able to talk to the USB device under test. Linux tries disconnecting, power cycling and the USB locks up around the xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command message. Unfortunately...
Increase CMSIS_DAP usb timeout value