On Tue, Feb 02, 2021 at 02:28:52PM +0100, Marcus Glocker wrote:
> Because of that ugen(4) calls usbd_deactivate(),
> and the device is busted ...

I see. And it looks like that device is also not compliant: its
interfaces are again, non-contiguous.

> Now we can argue whether the behavior of ugen(4) is entirely correct,
> and so forth, but at this point I really think we should make
> usbd_device2interface_handle() backwards compatible again, because
> otherwise I think we'll go down a rabbit hole of such situations.

Agreed.

(Maybe later the right solution is for ugen to first ask how many
interfaces there are, and then keep scanning until it has seen them all,
regardless of gaps in the interface numbers. Maybe that's not possible,
I don't know)

-- 
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk

Reply via email to