From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14F2B19E98C; Fri, 20 Jun 2025 22:40:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750459203; cv=none; b=IFaCWpYiej4G5R26z8LNoAQNMyDbuUHk9lAhcXikoWO6q6eyw0PtXg6zR2cD9rZlENYeldfKM695B+6eQeBwMqNncOpKoBjDOnDGhPk8iHpJ+uj8urnGngKOxgIWvr8Y206nhRc2kjozrfUXCrI/jTGbGg6xpqo6QJctca0eTxA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750459203; c=relaxed/simple; bh=UJzf/Edj/55hCAfBsXh8EBKPEyt2L6fszDs5Yetv6X8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MCy3PAIs4VGLuqXjnIbZlBTOCXN2xx/7bqYCUxx5hyXN46Ed1Ti9SYgpa5t3mh3WvHSF0vEJJsbnd+rIwXROCEq0TLMQg1ob3lzYnLdd/feem5ZXpSS1JazkbttKl360U50jvdtTgTZ/XnhkMwWXoWcb6JCtU7H7thAcYN4P1PE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=g2HaO1Nn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="g2HaO1Nn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11D78C4CEE3; Fri, 20 Jun 2025 22:39:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1750459202; bh=UJzf/Edj/55hCAfBsXh8EBKPEyt2L6fszDs5Yetv6X8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g2HaO1Nn7StuX/qXCawUaxTa2ghi8SoP1/TzcWXWU50izuMWG5Q2V6EGILarefUgl ixe1R5x4Xd5yOb1ihlBwyA9qu0nfvMeshXL0eBoe9Zo+OizE13isql/kD7gQlPde79 YVwiqnCjARxMWRQnrjWhXJxF3xelN9rxv/KbXB3SMSa7xAUTrqoh0oc+RVI3AHWiQ8 ZrnVCVwdlOUgJjIVWIMIlD+y/9BWKzZ/gYpxftZsoGhauI7rAx4nXBGLtrVwhcBdGM zDe+b5Lqcr2Zmh/hyG/TJZ4NKMlMqHTNGV884qL0nhDs6DcESM+46XdUyLAjTQkxuw QMRl7YUAp/yYQ== Date: Sat, 21 Jun 2025 00:39:54 +0200 From: Danilo Krummrich To: Rob Herring Cc: "Rafael J . Wysocki" , Igor Korotin , Alex Gaynor , Greg Kroah-Hartman , Miguel Ojeda , Saravana Kannan , Alex Hung , Andrew Morton , Jakub Kicinski , Jonathan Cameron , Krzysztof Kozlowski , Mauro Carvalho Chehab , Remo Senekowitsch , Tamir Duberstein , Viresh Kumar , Wedson Almeida Filho , Xiangfei Ding , devicetree@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Alice Ryhl , Andreas Hindborg , Benno Lossin , Boqun Feng , Gary Guo , Len Brown , Trevor Gross Subject: Re: [PATCH v8 1/9] rust: device: implement FwNode::is_of_node() Message-ID: References: <20250620150914.276272-1-igor.korotin.linux@gmail.com> <20250620151504.278766-1-igor.korotin.linux@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250620151504.278766-1-igor.korotin.linux@gmail.com> On Fri, Jun 20, 2025 at 04:15:04PM +0100, Igor Korotin wrote: > From: Danilo Krummrich > > Implement FwNode::is_of_node() in order to check whether a FwNode > instance is embedded in a struct device_node. > > Signed-off-by: Danilo Krummrich > Signed-off-by: Igor Korotin > --- > MAINTAINERS | 1 + > rust/helpers/helpers.c | 1 + > rust/helpers/of.c | 8 ++++++++ > rust/kernel/device/property.rs | 7 +++++++ > 4 files changed, 17 insertions(+) > create mode 100644 rust/helpers/of.c > > diff --git a/MAINTAINERS b/MAINTAINERS > index 9f724cd556f4..1e918319cff4 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -18579,6 +18579,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git > F: Documentation/ABI/testing/sysfs-firmware-ofw > F: drivers/of/ > F: include/linux/of*.h > +F: rust/helpers/of.c @Rob: Any concerns about adding the OF Rust helpers to the OF entry?