Re: [Libusbx-devel] [libusbx] Windows: Use WinUSB when available to avoid driver IOCTL bugs. (#137)

2013-09-20 Thread Juan Lang
Thanks very much for the feedback. 2013/9/18 mcuee > I do not have a test setup to effectively testing this patch. We also know > that this is a work around for some 3rd party xhci controller > driver/firmware bugs where the new driver may already fix the issues. > > Ref: > http://libusbx.108148

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

2013-08-26 Thread Juan Lang
2013/8/26 Xiaofan Chen > On Sat, Aug 24, 2013 at 10:30 AM, Juan Lang wrote: > > It's not as scary as it looks, but I thought I'd first send one big > patch to > > show where it's headed. If it's easier I can break it up into several > > di

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 > &g

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] Reading device descriptor and config descriptor from WinUsb

2013-08-22 Thread Juan Lang
2013/8/21 Xiaofan Chen > I think in the past we have fixed a few issues for some of the Renesas > and Intel issues. Could you give more details of the USB host > controllers you are seeing the problems? And you may want to > list the driver version you are using. Maybe the vendors have > already

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

2013-08-21 Thread Juan Lang
Thanks Xiaofan, 2013/8/21 Xiaofan Chen > On Thu, Aug 22, 2013 at 6:54 AM, Juan Lang wrote: > > Hi folks, > > this is a followup to my earlier query about USB 3 ports failing on > Windows > > 7. I've confirmed that the failures I see are due to bugs in the USB 3 &g

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

2013-08-21 Thread Juan Lang
Hi folks, this is a followup to my earlier query about USB 3 ports failing on Windows 7. I've confirmed that the failures I see are due to bugs in the USB 3 port drivers, which don't support the IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX or IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION ioctls. I

Re: [Libusbx-devel] libusb_open_device_with_vid_pid fails on Windows 7 on USB 3.0 ports

2013-07-25 Thread Juan Lang
2013/7/25 Tim Roberts > Juan Lang wrote: > > > > I've got a little test program that I'm running against a device I > > have, which is supported by the winusb driver. Here's my little test > > program: > > ... > > The program produces the

[Libusbx-devel] libusb_open_device_with_vid_pid fails on Windows 7 on USB 3.0 ports

2013-07-25 Thread Juan Lang
Hi there, (resending after 1 day stuck in moderation, apologies if you get this twice.) I've got a little test program that I'm running against a device I have, which is supported by the winusb driver. Here's my little test program: int main(int argc, char* argv[]) { libusb_context* ctx; libu

[Libusbx-devel] libusb_open_device_with_vid_pid fails on Windows 7 on USB 3.0 ports

2013-07-24 Thread Juan Lang
Hi there, I've got a little test program that I'm running against a device I have, which is supported by the winusb driver. Here's my little test program: int main(int argc, char* argv[]) { libusb_context* ctx; libusb_device_handle* dev_handle; libusb_init(&ctx); libusb_set_debug(ctx, 4);