[PATCH 1/1] cmake: do not check for g++ when FTDIPP is disabled

2019-10-02 Thread Fabrice Fontaine
Signed-off-by: Samuel Martin [Retrieved (and slightly updated) from: https://git.buildroot.net/buildroot/tree/package/libftdi1/0003-cmake-do-not-check-for-g-when-FTDIPP-is-disabled.patch] Signed-off-by: Fabrice Fontaine --- CMakeLists.txt| 2 +- ftdipp/CMakeLists.txt | 2 ++ 2 files chan

Re: ftdi_transfer_data_done busy loop

2019-10-02 Thread Omri Steiner
I'm not sure where you supplied the patch which adds timeouts. Anyway, here's a patch which fixes it w/o adding hardcoded timeouts (they're hardcoded inside libusb instead). It also doesn't break the API. diff --git a/src/ftdi.c b/src/ftdi.c index 988a9f1..ed2c817 100644 --- a/src/ftdi.c +++ b/src

Re: [PATCH 1/1] cmake: fix FindUSB1.cmake

2019-10-02 Thread Fabrice Fontaine
Dear Thomas, Le mer. 2 oct. 2019 à 09:46, Thomas Jarosch a écrit : > > Hi Fabrice and Samuel, > > You wrote on Tue, Oct 01, 2019 at 06:54:44PM +0200: > > Make sure all ldflags are correctly set, especially for static build. > > > > Signed-off-by: Samuel Martin > > [Retrieved from: > > https://gi

Re: Outstanding patches for v1.5?

2019-10-02 Thread Thomas Jarosch
Hi Xan, You wrote on Wed, Oct 02, 2019 at 08:11:27AM +: [python wrapper usb purge functions] > Yes, these are marked as deprecated, Maybe its reasonable > to remove them from the Python bindings. ...and then all the distros will need to patch it back in ^^ -> let's keep them for now for the

Re: ftdi_transfer_data_done busy loop

2019-10-02 Thread Thomas Jarosch
Hi Omri, You wrote on Thu, Aug 22, 2019 at 11:22:35AM +0300: > It seems that both ftdi_transfer_data_done and ftdi_transfer_data_cancel > call libusb_handle_events_timeout_completed with zero timeval, with the > intention of indefinitely blocking (it even states so in > ftdi_transfer_data_cancel's

Re: Outstanding patches for v1.5?

2019-10-02 Thread Omri Steiner
Hey, I found some problem which causes a busywait in ftdi_transfer_data_done and ftdi_transfer_data_cancel (async transfers API). I mentioned it not to long ago in this mailing list, but I haven't written a patch yet. Do you think it's worth fixing for the next release? I can write up a patch and m

Re: Outstanding patches for v1.5?

2019-10-02 Thread Michel Zou
Yes, these are marked as deprecated, Maybe its reasonable to remove them from the Python bindings. xan From: Thomas Jarosch Sent: Wednesday, October 2, 2019 7:32 AM To: libftdi@developer.intra2net.com Subject: Re: Outstanding patches for v1.5? Hi Xan, You wrote

Re: [PATCH 1/1] cmake: fix FindUSB1.cmake

2019-10-02 Thread Thomas Jarosch
Hi Fabrice and Samuel, You wrote on Tue, Oct 01, 2019 at 06:54:44PM +0200: > Make sure all ldflags are correctly set, especially for static build. > > Signed-off-by: Samuel Martin > [Retrieved from: > https://git.buildroot.net/buildroot/tree/package/libftdi1/0002-cmake-fix-FindUSB1.cmake.patch]

Re: Outstanding patches for v1.5?

2019-10-02 Thread Thomas Jarosch
Hi Xan, You wrote on Tue, Oct 01, 2019 at 03:30:34PM +: > I just have a cleanup patch here: > > diff --git a/python/ftdi1.i b/python/ftdi1.i > index 8b179f9..db54867 100644 > --- a/python/ftdi1.i > +++ b/python/ftdi1.i > @@ -43,6 +43,10 @@ char * str2charp_size(PyObject* pyObj, int * size) >