[PATCH v3 2/3] coresight-tnoc: add platform driver to support Interconnect TNOC
Leo Yan
leo.yan at arm.com
Fri Aug 29 01:24:27 PDT 2025
On Thu, Aug 28, 2025 at 02:27:23AM -0700, Yuanfang Zhang wrote:
[...]
> @@ -51,12 +53,17 @@ static void trace_noc_enable_hw(struct trace_noc_drvdata *drvdata)
> {
> u32 val;
>
> + /* No valid ATID, simply enable the unit */
> + if (drvdata->atid == -EOPNOTSUPP) {
> + writel(TRACE_NOC_CTRL_PORTEN, drvdata->base + TRACE_NOC_CTRL);
> + return;
> + }
> +
> /* Set ATID */
> writel_relaxed(drvdata->atid, drvdata->base + TRACE_NOC_XLD);
>
> /* Set the data word count between 'SYNC' packets */
> writel_relaxed(TRACE_NOC_SYNC_INTERVAL, drvdata->base + TRACE_NOC_SYNCR);
> -
Unintended change ?
> /* Set the Control register:
> * - Set the FLAG packets to 'FLAG' packets
> * - Set the FREQ packets to 'FREQ_TS' packets
> @@ -68,8 +75,8 @@ static void trace_noc_enable_hw(struct trace_noc_drvdata *drvdata)
> val &= ~TRACE_NOC_CTRL_FLAGTYPE;
> val |= TRACE_NOC_CTRL_FREQTYPE;
> val |= TRACE_NOC_CTRL_PORTEN;
> -
Ditto.
> writel(val, drvdata->base + TRACE_NOC_CTRL);
> +
Ditto.
Otherwise, LGTM:
Reviewed-by: Leo Yan <leo.yan at arm.com>
More information about the linux-arm-kernel
mailing list