doc: usb_adapters: update the script for unavailable reports
commitb7173732471c230a7fdc56efe23be35f60dbaae9
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 10 Dec 2023 20:35:10 +0000 (10 21:35 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 6 Jan 2024 13:50:24 +0000 (6 13:50 +0000)
tree7ad42aa77a3099825bdb20fe6db1f44d33492f39
parent5c53034d85480d0855394c4683733f61b27b6c5e
doc: usb_adapters: update the script for unavailable reports

When Linux HID driver binds the USB endpoints of the adapter,
'lsusb' fails to read all the reports and prints
** UNAVAILABLE **

Detect this case and alert the user, providing also the proper
command to unbind the driver before running the script again.
Put this test at the end of the output, so user can easily see it.

Change-Id: Iaca00040e666b62ceebe4b842a24932799bde56a
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reported-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/8046
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
doc/usb_adapters/dump.sh