Dear Colleagues,
I have met a problem with a submitted read request – it never ends if there
is no input data.
When application calls ftdi_transfer_data_done it never returns.
libusb logs indicate that the transfer completes with status word only and
then unconditionally resubmitted.
Exit from the app with no call to ftdi_transfer_data_done causes random
crashes.
Suggested patch implements a cancelation routine and solves the problem
I’ve described.
Best Regards
Eugene