On 2012.07.18 15:58, Peter Stuge wrote: > Well the HC is not a USB device, so it does not fit into the > libusb-1.0 API device model, which is (only) for USB devices.
This, I agree with, as long as we differentiate the HC part and the root hub part. > Again, the root hub is not a USB device This I disagree with. A virtual device is still a device, just like a virtual PC still qualifies as a PC. > If the HC is on a PCI bus then it will have a PCI VID/PID, but > pretending that those are USB ids is a bad idea, since they are two > unrelated namespaces. You can try telling that to Microsoft, who happily display an USB VID:PID for root hubs, in Windows' device manager. As such, there's no less reason for libusb to say it will go with what one OS provides for root hubs' VID:PIDs, but not another. Also, IMO, it's really the namespace separation, on account of trying to clone the oh-so-juicy IEEE OUI pie that was the "bad idea". And look, now it's Thunderbolt that's introducing its own naming authority [1]... > I think that HCs and root hubs should not be exposed as USB devices, > because they are not USB devices. A virtual device might have limits compared to a real one, but I have to disagree that it should not be counted as a device unless it emulates each and every single feature of the real one. > That doesn't mean that the API must never be extended to deal also > with those devices Well, the thing is, the API is extended now, to list these devices, so I fail to see a valid reason to want to spend time removing them. Especially not if it's to follow precepts that I would qualify as bordering on an ill-placed aesthetics sense: You may find a completely monochrome bedroom, with only a bed and no window as both elegant and functional, thus appealing. But the day you're going to have to use it, you may find yourself longing for a bit more frills. You may even welcome a very small skylight then, if you can't have a proper window... Regards, /Pete [1] http://developer.apple.com/library/mac/#documentation/HardwareDrivers/Conceptual/ThunderboltDevGuide/Basics01/Basics01.html ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel