From: James Clark <james.clark@linaro.org>
To: Yige Jiang <yigejiang86@gmail.com>
Cc: Mike Leach <mike.leach@arm.com>, Leo Yan <leo.yan@arm.com>,
coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>
Subject: Re: [PATCH v2 2/3] coresight: tnoc: Fix fwnode reference leak on probe failure
Date: Fri, 27 Nov 2026 11:18:50 +0000 [thread overview]
Message-ID: <b83bfb3d-d654-4b99-8ed5-ddbbf90fa6e1@linaro.org> (raw)
In-Reply-To: <20261126-coresight-v2-9e483a5f35a7@gmail.com>
On 26/11/2026 15:57, Yige Jiang wrote:
> _tnoc_probe() parses the output connections before allocating driver
> data, enabling clocks, mapping registers and setting up the trace ID.
> If any of these steps fails, probe returns before coresight_register()
> can take ownership of the destination fwnode references.
>
> Get the platform data after trace ID setup. On either lookup or
> registration failure, return the ID if the AMBA device acquired one.
> The platform-device variant does not allocate a trace ID.
>
> Codex helped trace the two probe paths and draft their shared cleanup.
>
> Fixes: e54a52a28a36 ("coresight: add coresight Trace Network On Chip driver")
> Suggested-by: James Clark <james.clark@linaro.org>
> Signed-off-by: Yige Jiang <yigejiang86@gmail.com>
> ---
> v2: Add the TNOC fix identified during review of the TPDM patch.
>
The threading is broken for the patchset. Check out the b4 tools, they
handle patch creation and sending properly.
prev parent reply other threads:[~2026-11-27 12:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 15:57 [PATCH v2 2/3] coresight: tnoc: Fix fwnode reference leak on probe failure Yige Jiang
2026-11-27 11:18 ` James Clark [this message]
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=b83bfb3d-d654-4b99-8ed5-ddbbf90fa6e1@linaro.org \
--to=james.clark@linaro.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=coresight@lists.linaro.org \
--cc=leo.yan@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mike.leach@arm.com \
--cc=suzuki.poulose@arm.com \
--cc=yigejiang86@gmail.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