From: yuanfang zhang <yuanfang.zhang@oss.qualcomm.com>
To: Suzuki K Poulose <suzuki.poulose@arm.com>,
Mike Leach <mike.leach@linaro.org>,
James Clark <james.clark@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: kernel@oss.qualcomm.com, coresight@lists.linaro.org,
linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 3/3] coresight-tnoc: Add runtime PM support for Interconnect TNOC
Date: Mon, 1 Sep 2025 16:30:47 +0800 [thread overview]
Message-ID: <b608b4b2-f850-4b49-be65-b2f4e3784dd5@oss.qualcomm.com> (raw)
In-Reply-To: <20250831-itnoc-v4-3-f0fb0ef822a5@oss.qualcomm.com>
[-- Attachment #1: Type: text/plain, Size: 1850 bytes --]
On 9/1/2025 2:58 PM, Yuanfang Zhang wrote:
> This patch adds runtime power management support for platform-based
> CoreSight Interconnect TNOC (ITNOC) devices. It introduces suspend and
> resume callbacks to manage the APB clock (`pclk`) during device runtime
> transitions.
>
> Signed-off-by: Yuanfang Zhang <yuanfang.zhang@oss.qualcomm.com>
> ---
> drivers/hwtracing/coresight/coresight-tnoc.c | 23 +++++++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> diff --git a/drivers/hwtracing/coresight/coresight-tnoc.c b/drivers/hwtracing/coresight/coresight-tnoc.c
> index 5be882300d79bc0173aa6a19d7da1d48c4aaca9c..2c5370497076536bfa868f0d80db775ef242968b 100644
> --- a/drivers/hwtracing/coresight/coresight-tnoc.c
> +++ b/drivers/hwtracing/coresight/coresight-tnoc.c
> @@ -301,6 +301,28 @@ static void itnoc_remove(struct platform_device *pdev)
> pm_runtime_disable(&pdev->dev);
> }
>
> +#ifdef CONFIG_PM
> +static int itnoc_runtime_suspend(struct device *dev)
> +{
> + struct trace_noc_drvdata *drvdata = dev_get_drvdata(dev);
> +
> + clk_disable_unprepare(drvdata->pclk);
> +
> + return 0;
> +}
> +
> +static int itnoc_runtime_resume(struct device *dev)
> +{
> + struct trace_noc_drvdata *drvdata = dev_get_drvdata(dev);
> +
> + return clk_prepare_enable(drvdata->pclk);
> +}
> +#endif
> +
> +static const struct dev_pm_ops itnoc_dev_pm_ops = {
> + SET_RUNTIME_PM_OPS(itnoc_runtime_suspend, itnoc_runtime_resume, NULL)
> +};
> +
> static const struct of_device_id itnoc_of_match[] = {
> { .compatible = "qcom,coresight-itnoc" },
> {}
> @@ -314,6 +336,7 @@ static struct platform_driver itnoc_driver = {
> .name = "coresight-itnoc",
> .of_match_table = itnoc_of_match,
> .suppress_bind_attrs = true,
> + .pm = &itnoc_dev_pm_ops,
> },
> };
>
>
missed Reviewed-by: Leo Yan <leo.yan@arm.com> tag.
thanks,
yuanfang.
[-- Attachment #2: https://lore.kernel.org/linux-arm-kernel/20250829084118.GG745921@e132581.arm.com/ --]
[-- Type: text/html, Size: 4371 bytes --]
next prev parent reply other threads:[~2025-09-01 8:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-01 6:58 [PATCH v4 0/3] coresight-tnoc: Add " Yuanfang Zhang
2025-09-01 6:58 ` [PATCH v4 1/3] dt-bindings: arm: qcom: Add Coresight " Yuanfang Zhang
2025-09-01 6:58 ` [PATCH v4 2/3] coresight-tnoc: add platform driver to support " Yuanfang Zhang
2025-09-01 6:58 ` [PATCH v4 3/3] coresight-tnoc: Add runtime PM support for " Yuanfang Zhang
2025-09-01 8:30 ` yuanfang zhang [this message]
2025-09-01 8:38 ` yuanfang zhang
2025-09-16 2:35 ` [PATCH v4 0/3] coresight-tnoc: Add " yuanfang zhang
2025-09-16 13:00 ` Mike Leach
2025-09-17 3:12 ` yuanfang zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b608b4b2-f850-4b49-be65-b2f4e3784dd5@oss.qualcomm.com \
--to=yuanfang.zhang@oss.qualcomm.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=conor+dt@kernel.org \
--cc=coresight@lists.linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=james.clark@linaro.org \
--cc=kernel@oss.qualcomm.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mike.leach@linaro.org \
--cc=robh@kernel.org \
--cc=suzuki.poulose@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®