[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <FAC86B63-854F-494C-A55E-4A01BE7511D3@collabora.com>
Date: Sat, 6 Sep 2025 11:56:49 -0300
From: Daniel Almeida <daniel.almeida@...labora.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <lossin@...nel.org>,
Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>,
Trevor Gross <tmgross@...ch.edu>,
Danilo Krummrich <dakr@...nel.org>,
linux-kernel@...r.kernel.org,
rust-for-linux@...r.kernel.org,
linux-usb@...r.kernel.org
Subject: Re: [PATCH 2/2] samples: rust: add a USB driver sample
> On 6 Sep 2025, at 10:07, Greg Kroah-Hartman <gregkh@...uxfoundation.org> wrote:
>
> On Sat, Sep 06, 2025 at 09:41:16AM -0300, Daniel Almeida wrote:
>>
>>
>>>>
>>>> I thought that an iterative approach would work here, i.e.: merge this, then
>>>> URBs, then more stuff, etc.
>>>
>>> Ah, that makes sense, I didn't realize you want that here. What USB
>>> device do you want to write a rust driver for? Are you going to need
>>> bindings to the usb major number, or is it going to talk to some other
>>> subsystem instead?
>>>
>>> Right now, these bindings don't really do anything USB specific at all
>>> except allow a driver to bind to a device.
>>>
>>> thanks,
>>>
>>> greg k-h
>>
>> To be honest, I'm trying to pave the way for others.
>>
>> I often hear people saying that they would look into Rust drivers if only they
>> did not have to write all the surrounding infrastructure themselves. On the
>> other hand, there is no infrastructure because there are no drivers. It's a
>> chicken and egg problem that I am trying to solve.
>
> Sure, but a framework like this (probe/disconnect), really isn't USB,
> it's just driver core stuff :)
>
>> It's also a cool opportunity to learn about USB, but I don't have any plans
>> for a driver at the moment other than a instructional sample driver in Rust.
>
> Then let's not add bindings without a real user please. We don't want
> to maintain them for no good reason.
>
That’s OK Greg, I totally see your point here. I guess we can shelve this
work for the time being then.
To everybody else: if anyone is willing to write USB drivers, let me know. I
will work with you to get the abstractions in place so that we have both the
abstractions and a real user.
-- Daniel
Powered by blists - more mailing lists