linux-msm / qdl

BSD 3-Clause "New" or "Revised" License
196 stars 76 forks source link

added kernel detach to avoid error: LIBUSB_ERROR_BUSY #70

Closed AMV007 closed 3 weeks ago

AMV007 commented 3 weeks ago

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

quic-bjorande commented 3 weeks 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 3 weeks ago

Superseded by #71, hope it's okay

AMV007 commented 3 weeks ago

nice, thank you ;)