1 Commits
Author SHA1 Message Date
Zhirong Chen 3797094362 firehose: treat -ENODEV on commit=1 as success after UFS provisioning
Some UFS programmers reset the device right after committing the
configuration descriptor, dropping the USB link before sending the
ACK, so qdl reports a failure although provisioning succeeded.

Map LIBUSB_ERROR_NO_DEVICE to -ENODEV in usb_read() and, when the
device disappears after commit=1, treat it as success and skip the
final reset. Any real descriptor error would already have been
NAKed during the earlier exchange. A disconnect during the commit=0
dry run remains a hard error.

Signed-off-by: Zhirong Chen <zhirongc@qti.qualcomm.com>
2026-10-02 19:47:45 +02:00