lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <175305780744.3139904.12956973374132329407.robh@kernel.org>
Date: Sun, 20 Jul 2025 19:30:08 -0500
From: "Rob Herring (Arm)" <robh@...nel.org>
To: Alireza Sanaee <alireza.sanaee@...wei.com>
Cc: mark.rutland@....com, shameerali.kolothum.thodi@...wei.com,
	linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
	jonathan.cameron@...wei.com, linux-arm-kernel@...ts.infradead.org,
	james.clark@...aro.org, mike.leach@...aro.org,
	coresight@...ts.linaro.org, krzk@...nel.org, linuxarm@...wei.com,
	suzuki.poulose@....com, dianders@...omium.org,
	ruanjinjie@...wei.com, linux-perf-users@...r.kernel.org,
	saravanak@...gle.com
Subject: Re: [PATCH v3 1/6] of: add infra for finding CPU id from phandle


On Fri, 18 Jul 2025 10:48:43 +0100, Alireza Sanaee wrote:
> Get CPU ID from phandle. Some drivers such as coresight, cti-coresight,
> or arm-dsu use this API for finding CPU node in DT. In particular,
> drivers do this by getting the CPU device_node through a phandle and
> then find the CPU ID using of_cpu_node_to_id(). This commit encapsulates
> CPU node finding and improves readability.
> 
> The API interface takes three parameters, 1) node, 2) pointer to
> pointer of CPU node, 3) CPU node index. API sets the pointer to the CPU
> node and allows the driver to work with the CPU node, for logging
> purposes for instance.
> 
> Signed-off-by: Alireza Sanaee <alireza.sanaee@...wei.com>
> ---
>  drivers/of/cpu.c   | 49 ++++++++++++++++++++++++++++++++++++++++++++++
>  include/linux/of.h |  9 +++++++++
>  2 files changed, 58 insertions(+)
> 

Reviewed-by: Rob Herring (Arm) <robh@...nel.org>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ