-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better support of HCD root hub on Windows on ARM #1050
Comments
Is this format described anywhere? In the example above it looks like vendor is QCOM (Qualcomm?) and product could be 0x04A6. To not change our internal structures, if there are not too many vendors we could keep a table of vendor strings and an associated ID, or make a hash out of it, to stuff into our idVendor. I guess any clashes with real |
Unfortunately it does not seem to be documented. Hopefully more people will chime in to see what is shown in their system. The existing Intel/AMD x86/amd64 platform seems to follow the format "PCI\VEN_%04hx&DEV_%04hx%*s". This does not seem to be true for Windows on ARM64. |
Ref: All PCI/PCIE based USB controller will have the hardware ID which current Windows codes can deal with. The problem is for non PCI/PCIE based USB controller (if there are any such controllers) or if they do not follow the above convention. There is also a possibility that they are using kind of filter driver and the current Windows code does not work well with this kind of configuration. I found the following from Google. Qualcomm XHCI Filter Device drivers Hardware IDs:
|
Could this PR #1202 help, maybe? |
Can somebody please test #1202 on Windows on ARM? |
Just wondering if you can give #1202 a try on Windows on ARM64? Pre-built binary for ARM64 Windows. |
Just wondering if you can give #1202 a try on Windows on ARM64? Thanks. Pre-built binary for ARM64 Windows. |
@mcuee : I tested your binary under Windows 11 ARM64 and I got the expected results with testlibusb and listdevs, but I also got expected results when running master (that I compiled for ARM64 by myself). What I mean is that even with current master I am only getting dev_id strings that match the expected "regexp" used by scanf. Therefore my conclusion is that, as opposed to what you said earlier, this format is also valid, in general, under Windows 64. Now, it might not be valid for all implementations, under ARM64 or not, I don't known |
Does anyone know what to do with this warning? |
Try upgrading to libusb 1.0.27. |
I have a vaguely bad feeling about this, could be the next potential supply chain poisoning similar to xz-utils? |
Don't spam the github issues. Thanks. I have re-opened the relevant issue. If you feel that is not good enough, please open a new issue. |
From: #1046
Good point. We may need to support this kind of HCD root hub better down the road.
Currently the code is like this.
https://github.com/libusb/libusb/blob/master/libusb/os/windows_winusb.c#L1288
The text was updated successfully, but these errors were encountered: