libftdi Archives

Subject: Suggested patch for adding ftdi_transfer_data_cancel

From: "Eugene Hutorny" <eugene@xxxxxxxxxxxxx>
To: <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 25 Jan 2016 09:35:24 +0200
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
 


libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx


Attachment: 0001-Added-ftdi_transfer_data_cancel.patch
Description: Binary data

Current Thread