linux-msm / qdl

BSD 3-Clause "New" or "Revised" License
225 stars 79 forks source link

added kernel detach to avoid error: LIBUSB_ERROR_BUSY #70

Closed AMV007 closed 5 months ago

AMV007 commented 5 months ago

fix kernel detach error, for some reason can't use qdl without this at my pc

quic-bjorande commented 5 months ago

I did test this and similar to the timeout, libusb return codes are tricky. So, checking for negative return value will break the case where the kernel doesn't have a driver attached to the USB device. I took the liberty of posting #71 which handles this, and with a commit message documenting why...

konradybcio commented 5 months ago

Superseded by #71, hope it's okay

AMV007 commented 5 months ago

nice, thank you ;)