)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1002122,"name":"Wolfram Sang","email":"wsa@kernel.org","username":"wsakernel"},"change_message_id":"d4fae3de505cafc5ffc5c4467d8b2f368c8cae79","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"f5626301_b3a19e4c","updated":"2023-03-06 19:34:27.000000000","message":"It works here. Thank you! Since there is no Test+2 or similar, I just used Code+1.","commit_id":"9ed6d44aae06364689de21a67bcade68bdc09e92"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"798199bd4848b661acee0f8ff60c3e958acbe99b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"a58963f3_016d91cd","updated":"2023-03-06 19:06:45.000000000","message":"Thanks, I was imaging something similar but never went ahead.","commit_id":"9ed6d44aae06364689de21a67bcade68bdc09e92"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"973b348b90b1100053c0e07e0884115803f824ac","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"42f3eed4_4a07fb4d","updated":"2023-03-06 19:14:28.000000000","message":"Yes, this is the easier change, but I think it could be better to use directly jtag_libusb_open() and drop some duplicated code. Maybe as future improvement...","commit_id":"9ed6d44aae06364689de21a67bcade68bdc09e92"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"9c310d4d2481b9071baa49b3d479c43de5fea80c","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"ed065a34_303924fd","in_reply_to":"42f3eed4_4a07fb4d","updated":"2023-03-06 19:58:48.000000000","message":"Yup, I looked at that as well - it would require much more work...","commit_id":"9ed6d44aae06364689de21a67bcade68bdc09e92"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"a8c7fd5ac62c4857f95f2980bf91a67f4d80dc8c","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"a6f2bc8d_7184b253","in_reply_to":"ed065a34_303924fd","updated":"2023-03-06 21:38:46.000000000","message":"Yes, agree.\nIt\u0027s in my TODO for consolidating vid/pid and other USB config parameter as \u0027adapter\u0027 commands.","commit_id":"9ed6d44aae06364689de21a67bcade68bdc09e92"},{"author":{"_account_id":1001964,"name":"Erhan Kurubas","display_name":"Erhan Kurubas","email":"erhan.kurubas@espressif.com","username":"erhankur"},"change_message_id":"eb3b7fbe4bfca2ca1f8dad95ac98eddc40813075","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":2,"id":"03ca5e9e_c11fa87b","updated":"2023-09-05 21:42:19.000000000","message":"Hi Tomas,\n\nI see an issue after this patch.\n\na) I have 2 FTDI devices in the bus. \n\n\u003e lsusb\nBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub\nBus 001 Device 019: ID 0403:6014 Future Technology Devices International, Ltd FT232H Single HS USB-UART/FIFO IC\nBus 001 Device 018: ID 0403:6010 Future Technology Devices International, Ltd FT2232C/D/H Dual UART/FIFO IC\nBus 001 Device 005: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub\nBus 001 Device 004: ID 413c:2113 Dell Computer Corp. Dell KB216 Wired Keyboard\nBus 001 Device 003: ID 413c:301a Dell Computer Corp. Dell MS116 USB Optical Mouse\nBus 001 Device 002: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\n\n\nb) vid pid set in the reverse order compared the device list\n\nftdi vid_pid 0x0403 0x6010 0x0403 0x6014\n\nc) vid_pid list searched in devlist and first found 0403:6014\nd) Later; \nError: libusb_claim_interface() failed with LIBUSB_ERROR_BUSY\nError: unable to open ftdi device with description \u0027*\u0027, serial \u0027*\u0027 at bus location \u0027*\u0027\n\nI think, search process should continue until it reaches the end of the device list. Because the next `0403:6010` is the correct device. What do you think?","commit_id":"a8bc4e75b3dda3d32345fa310a3be724235d8fa8"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"130f2149bf7381af4873b8f695d65cb7a7205fbc","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":2,"id":"3650f256_59c21e46","in_reply_to":"03ca5e9e_c11fa87b","updated":"2023-09-06 07:42:51.000000000","message":"Thanks for reporting, Erhan.\n\nIMO the only blame of this change is changing the order the USB devices are opened. The old code searched sequentially in vid/pid list, the new code searches for any device matching vid/pid list in the order returned by libusb_get_device_list(). The new behaviour is similar to all drivers using jtag_libusb_open(), I believe it is correct.\n\nWell, continuing searching after libusb_claim_interface() fail is possible.\nI think it would significantly complicate the code around libusb_open().\nOn the other hand choosing the first non-busy device may cause the user gets confused, don\u0027t you think? OpenOCD user mostly wants to connect the only adapter the debugged target is connected to. There seems me no point in using any currently free one of many connected adapters. If you connect more than one adapter of same type, you should use serial num or USB location to choose the right one or the target selection is like rolling the dice.","commit_id":"a8bc4e75b3dda3d32345fa310a3be724235d8fa8"},{"author":{"_account_id":1001964,"name":"Erhan Kurubas","display_name":"Erhan Kurubas","email":"erhan.kurubas@espressif.com","username":"erhankur"},"change_message_id":"2f31d88ad39f163019049978a94c9fdd8a265b01","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"1eb968f2_8b897a0d","in_reply_to":"3650f256_59c21e46","updated":"2023-09-07 19:22:13.000000000","message":"Thanks for the explanation. I agree with your point. My test setup is not common compared to most users typically have.","commit_id":"a8bc4e75b3dda3d32345fa310a3be724235d8fa8"}]}
