Re: [PATCH RFC 0/2] rust: usb: abstractions towards the port of usbsevseg.c to Rust
"Alrexandru Radovici" <[email protected]> Sat, 01 Aug 2026 05:23:26 +0300
| Newsgroups | org.kernel.vger.rust-for-linux,org.kernel.vger.linux-kernel,org.kernel.vger.linux-usb |
|---|---|
| Message-ID | <[email protected]> |
On Sat Aug 1, 2026 at 2:59 AM EEST, Alexandru Radovici wrote: Fixed some mistakes, will include them in v2: - use `Duration` instead of `i32` for control functions timeout - fix control function 0 value timeout from "for ever" to `USB_MAX_SYNCHRON= OUS_TIMEOUT` - add `#[inline]` to short functions - use `u16::from_le` to read `wMaxPacketSize` - rename `Generic` generic type to `Dir` - impl `max_nak_rate` for `HostEndpoint<Bidirectional, Control>` - make data `&mut [u8]` for `receive_control_message` Alexandru