genodelabs / genode

Genode OS Framework
https://genode.org/
Other
1.08k stars 255 forks source link

usb: consider alternate interface setting in endpoint detection #5394

Open skalk opened 2 days ago

skalk commented 2 days ago

When detecting the endpoints of an interface, we need to consider, which alternate setting was chosen. Otherwise endpoints might be used, which are not available if the alternate setting is active. This issue was initially reported and partly fixed by @cnuke within issue #5371.

skalk commented 1 day ago

@cnuke I've extended your commit regarding alternate setting consideration within the usb session utilities. In commit 4792c93 you'll find your initial change plus an adaption of the libusb. I did not want to split that commit, thereby it has your authorship. I hope you're fine with it?!

cnuke commented 1 day ago

@skalk thanks for addressing the issue thoroughly.

I did not want to split that commit, thereby it has your authorship. I hope you're fine with it?!

I don't mind but I guess in 10 years time I might look back at the commit and will be somewhat puzzeld ;-).