[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250718121042.00007fe5@huawei.com>
Date: Fri, 18 Jul 2025 12:10:42 +0100
From: Jonathan Cameron <Jonathan.Cameron@...wei.com>
To: Alireza Sanaee <alireza.sanaee@...wei.com>
CC: <devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<coresight@...ts.linaro.org>, <dianders@...omium.org>,
<james.clark@...aro.org>, <krzk@...nel.org>,
<linux-arm-kernel@...ts.infradead.org>, <linux-perf-users@...r.kernel.org>,
<linuxarm@...wei.com>, <mark.rutland@....com>, <mike.leach@...aro.org>,
<robh@...nel.org>, <ruanjinjie@...wei.com>, <saravanak@...gle.com>,
<shameerali.kolothum.thodi@...wei.com>, <suzuki.poulose@....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 <alireza.sanaee@...wei.com> 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>
Reviewed-by: Jonathan Cameron <jonathan.cameron@...wei.com>
Powered by blists - more mailing lists