Re: [RFC PATCH 0/4] rust: usb: add usb request block abstractions and a user
From: Daniel Almeida
Date: Tue Jul 14 2026 - 22:36:53 EST
Hi Colin,
> On 13 Jul 2026, at 17:32, Colin Braun <colinbrauncl@xxxxxxxxx> wrote:
>
> On Mon, Jul 13, 2026 at 10:53:53AM -0300, Daniel Almeida wrote:
>>
>> Have you talked to the media people about adding a Rust driver?
>>
>
> I have not. I was actually wondering if this belongs in
> drivers/staging/media, given how much work still needs to be done for it
> to support basic functionality. I had seen some v4l2 Rust abstraction
> work done but not merged in, so I had hoped this could eventually be a
Yep, I was behind this for a few years, in a few different ways.
> user of that work. Still trying to get a lay of the land, this is my
> first attempt at contributing to the kernel.
>
I’m cc’ing my colleague Nicolas. He was at the media summit this year
discussing a topic somewhat related to Rust.
IIUC, the consensus is unfavorable for Rust media drivers at the moment. They
are waiting for more progress on gcc-rs before allowing it, as clang does not
fit some of their infrastructure.
This doesn't have to discourage you from this work, though. Last I spoke to
Greg, I think he was OK with having enough infrastructure to build a Rust
version of usb-skeleton.c. You could perhaps work on that? I never really found
the time to, but I can chime in with reviews. It's always nice to onboard new people :)
As Danilo pointed out, there is a competing implementation, though that seems
to be completely AI-generated, IIRC. Perhaps Mike would be interested in
letting you take it over? It's already a lot of work on their plate to do
hardware RE + KMS + usb, so you could work together instead.
Just a suggestion, of course.
-- Daniel