[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <DG5HIOSFBM2O.1ZKURNJFQN1KB@kernel.org>
Date: Tue, 03 Feb 2026 17:58:28 +0100
From: "Danilo Krummrich" <dakr@...nel.org>
To: "Gary Guo" <gary@...yguo.net>
Cc: "Matthew Maurer" <mmaurer@...gle.com>, "Bjorn Andersson"
<andersson@...nel.org>, "Konrad Dybcio" <konradybcio@...nel.org>, "Satya
Durga Srinivasu Prabhala" <satyap@...cinc.com>, "Miguel Ojeda"
<ojeda@...nel.org>, "Boqun Feng" <boqun.feng@...il.com>,
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>, "Daniel
Almeida" <daniel.almeida@...labora.com>, "Greg Kroah-Hartman"
<gregkh@...uxfoundation.org>, "Rafael J. Wysocki" <rafael@...nel.org>,
"David Airlie" <airlied@...il.com>, "Simona Vetter" <simona@...ll.ch>,
"Michal Wilczynski" <m.wilczynski@...sung.com>, "Dave Ertman"
<david.m.ertman@...el.com>, "Ira Weiny" <ira.weiny@...el.com>, "Leon
Romanovsky" <leon@...nel.org>, "Trilok Soni" <tsoni@...cinc.com>,
<linux-kernel@...r.kernel.org>, <linux-arm-msm@...r.kernel.org>,
<rust-for-linux@...r.kernel.org>, <driver-core@...ts.linux.dev>,
<dri-devel@...ts.freedesktop.org>, <linux-pwm@...r.kernel.org>
Subject: Re: [PATCH v2 5/6] rust: debugfs: Allow access to device in
Devres-wrapped scopes
On Tue Feb 3, 2026 at 5:47 PM CET, Gary Guo wrote:
> I think it is a big strange to have this on `Devres` (in patch v6 it has `Devres::dir` doesn't make
> too much sense). I would suggest that we domsomething like
>
> impl<'a, T: 'a + Send> Scope<T> {
> pub fn devres_dir(
> ...
> ) -> impl PinInit<Devres<Self>, Error> + 'a;
> }
Good catch, I did not notice that this is implemented on Devres, rather than
debugfs. This should not be implemented on Devres.
> To me `Devres` is just a generic container type, just like `Arc` and `ARef`, so
> the assoc functions should be defined on the concrete type.
Indded.
Powered by blists - more mailing lists