Re: [PATCH 1/2] rust: usb: add basic USB abstractions
From: Oliver Neukum
Date: Tue Sep 23 2025 - 10:16:39 EST
On 23.09.25 16:13, Greg Kroah-Hartman wrote:
Functions like usb_fill_bulk_urb() takes a pointer to a usb_device, not
an interface. Yes, we should fix that, but that "mistake" dates way way
way back to the original USB api decades ago. So much so that I didn't
even remember that we used that pointer there :)
How would we do that? We need to be able to send at least control
request to devices before we have established which configurations
or interfaces the device has.
Regards
Oliver