Hello Alice,

On Mon, Aug 05, 2024 at 11:15:54AM +0200, [email protected] wrote:
> Dear Genodians,
> 
> I am currently working on a USB driver. I am wondering if in the
> `Usb::Interface::Alt_setting` constructor, the parameters
> `iface.index().number` and `iface.index().alt_setting` are inverted?
> 
> According to the `Usb::Device::Urb` constructor, the interface index seems
> to come second.
> 
> If I invert those parameters, the correct interface is selected. Otherwise,
> the request fails.

you are perfectly right. The `Alt_setting` utility used those values
in inverted order. It probably did not striked us before, because it
is not widely used, but only by the USB block driver, where most
devices just have a combination of (0,0).
Thank you for reporting it. I've opened an issue:

  https://github.com/genodelabs/genode/issues/5315

Best regards
Stefan

> 
> Best,
> 
> Alice
> 
> _______________________________________________
> users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> Archived at 
> https://lists.genode.org/mailman3/hyperkitty/list/[email protected]/message/JISH5YUPLQVOCM2SJL55HD63KNEJKZVJ/

-- 
Stefan Kalkowski
Genode labs

https://github.com/skalk | https://genode.org
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Archived at 
https://lists.genode.org/mailman3/hyperkitty/list/[email protected]/message/QUKNSE67KUFRMXQ7OSP3SSGEZAVK5T62/

Reply via email to