[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <DG5GEI3PN79B.11GJWQDXXC1SZ@garyguo.net>
Date: Tue, 03 Feb 2026 16:05:59 +0000
From: "Gary Guo" <gary@...yguo.net>
To: "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>, "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>,
"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>
Cc: "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 3/6] rust: device: Support testing devices for
equality
On Tue Feb 3, 2026 at 3:46 PM GMT, Matthew Maurer wrote:
> This allows device drivers to check if, for example, an auxiliary
> devices is one of its children by comparing the parent field, or
> checking if a device parameter is its own device.
>
> Also convert existing `.as_raw() != .as_raw()` to use this new
> implementation.
>
> Signed-off-by: Matthew Maurer <mmaurer@...gle.com>
Reviewed-by: Gary Guo <gary@...yguo.net>
> ---
> rust/kernel/device.rs | 8 ++++++++
> rust/kernel/devres.rs | 2 +-
> rust/kernel/drm/driver.rs | 2 +-
> rust/kernel/pwm.rs | 2 +-
> 4 files changed, 11 insertions(+), 3 deletions(-)
Powered by blists - more mailing lists