Re: [Libusbx-devel] Reading device descriptor and config descriptor from WinUsb

2013-08-23 Thread Juan Lang
2013/8/23 Xiaofan Chen > On Sat, Aug 24, 2013 at 12:44 AM, Juan Lang wrote: > > 2013/8/22 Xiaofan Chen > >> Again I agree with you. On the other hand, I think it is still good > >> if Juan can come out a version for review. I do not mind review and > >> carry out some testing myself. > > > > Th

[Libusbx-devel] [libusbx] Use WinUsb when available to avoid driver IOCTL bugs. (#137)

2013-08-23 Thread juanlang
This uses WinUsb when available by deferring reading device and config descriptors from GEN_PASS to DEV_PASS. You can merge this Pull Request by running: git pull https://github.com/juanlang/libusbx master Or you can view, comment on it, or merge it online at: https://github.com/libusbx/lib

Re: [Libusbx-devel] Reading device descriptor and config descriptor from WinUsb

2013-08-23 Thread Xiaofan Chen
On Sat, Aug 24, 2013 at 12:44 AM, Juan Lang wrote: > 2013/8/22 Xiaofan Chen >> Again I agree with you. On the other hand, I think it is still good >> if Juan can come out a version for review. I do not mind review and >> carry out some testing myself. > > Thanks Xiaofan. Is emailing a diff to the

Re: [Libusbx-devel] Reading device descriptor and config descriptor from WinUsb

2013-08-23 Thread Juan Lang
2013/8/22 Xiaofan Chen > >> I have a hack that works for me by falling back to WinUsb when these > >> ioctls fail, but it's pretty hacky since I don't actually know (in > >> GEN_PASS) whether the device is a WinUsb device or not. I'll work on > >> postponing the ioctls until DEV_PASS to have some

Re: [Libusbx-devel] Doing a libusbx 1.0.17-rc1 release

2013-08-23 Thread Xiaofan Chen
On Fri, Aug 23, 2013 at 9:32 PM, Xiaofan Chen wrote: > On Fri, Aug 23, 2013 at 9:02 PM, Xiaofan Chen wrote: >> On Thu, Aug 22, 2013 at 10:50 PM, Hans de Goede wrote: >>> On 08/22/2013 03:30 AM, Xiaofan Chen wrote: For OpenBSD and NetBSD, I can carry out some simple tests over the weeke

Re: [Libusbx-devel] Doing a libusbx 1.0.17-rc1 release

2013-08-23 Thread Xiaofan Chen
On Fri, Aug 23, 2013 at 9:02 PM, Xiaofan Chen wrote: > On Thu, Aug 22, 2013 at 10:50 PM, Hans de Goede wrote: >> On 08/22/2013 03:30 AM, Xiaofan Chen wrote: >>> For OpenBSD and NetBSD, I can carry out some simple tests >>> over the weekend (basic building, stress test and xusb example >>> on a fe

Re: [Libusbx-devel] Doing a libusbx 1.0.17-rc1 release

2013-08-23 Thread Xiaofan Chen
On Fri, Aug 23, 2013 at 9:02 PM, Xiaofan Chen wrote: > On Thu, Aug 22, 2013 at 10:50 PM, Hans de Goede wrote: >> On 08/22/2013 03:30 AM, Xiaofan Chen wrote: >>> For OpenBSD and NetBSD, I can carry out some simple tests >>> over the weekend (basic building, stress test and xusb example >>> on a fe

Re: [Libusbx-devel] Doing a libusbx 1.0.17-rc1 release

2013-08-23 Thread Xiaofan Chen
On Thu, Aug 22, 2013 at 10:50 PM, Hans de Goede wrote: > On 08/22/2013 03:30 AM, Xiaofan Chen wrote: >> For OpenBSD and NetBSD, I can carry out some simple tests >> over the weekend (basic building, stress test and xusb example >> on a few devices). > > I was already hoping you would test these, t

[Libusbx-devel] [libusbx] darwin_bulk_transfer crashes with EXC_ARITHMETIC on Mac (#136)

2013-08-23 Thread Bei Zhang - Ikari Enator
GetPipeProperties may fail when the device is unplugged if `DeviceVersion` not greater than 320. This case `maxPacketSize` will be zero and the integer division will throw a EXC_ARITHMETIC signal. You can merge this Pull Request by running: git pull https://github.com/ikarienator/libusbx fix-