From: sashiko-bot@kernel.org
To: "Joonhoe Kim" <26rote@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: arm: qcom,coresight-tpdm: Allow arm,primecell-periphid
Date: Thu, 03 Dec 2026 15:22:31 +0000 [thread overview]
Message-ID: <sashiko-outbox-248100@kernel.org> (raw)
In-Reply-To: <20261203145953.1889-2-26rote@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: qcom,coresight-tpdm adds untyped local
arm,primecell-periphid
- [Medium] dt-bindings: coresight-tpdm: tpdm_datasets_setup() still
reads PIDR0 MMIO
--
commit 0eb8cc282c7ae2ede9baea9c1d96498f6522d2bc
Author: Joonhoe Kim <26rote@gmail.com>
dt-bindings: arm: qcom,coresight-tpdm: Allow arm,primecell-periphid
This commit adds arm,primecell-periphid to the Qualcomm CoreSight TPDM
devicetree binding so a fixed peripheral ID can be specified when the
device's ID registers cannot be read.
> diff --git a/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml b/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml
> index c7301f1b28c13..7eb49815c26c6 100644
> --- a/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml
> +++ b/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml
> @@ -83,6 +83,10 @@ properties:
> description:
> Description of a coresight device.
>
> + arm,primecell-periphid:
> + description:
> + Fixed peripheral ID, for a TPDM whose ID registers cannot be read.
[Severity: Medium]
Does declaring arm,primecell-periphid here without a type or $ref fail
dt_binding_check?
Because it is a vendor-prefixed property without a standard unit suffix
and this schema does not reference primecell.yaml, dt-doc-validate
requires an explicit type. Listing it in top-level properties also allows
an untyped property on non-AMBA qcom,coresight-static-tpdm nodes.
Like Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml, this
schema could conditionally reference /schemas/arm/primecell.yaml# in allOf
for AMBA compatibles and use unevaluatedProperties: false.
[Severity: Medium]
Can setting arm,primecell-periphid to a real TPDM ID still hang the bus on
probe?
While of_amba_device_create() lets the AMBA bus skip amba_read_periphid(),
any ID matching dynamic_tpdm_ids binds dynamic_tpdm_driver and reaches
dynamic_tpdm_probe() -> tpdm_probe() -> tpdm_datasets_setup(), which still
reads CORESIGHT_PERIPHIDR0 (offset 0xfe0, the same PID0 register) via MMIO.
Commit "arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM"
only avoids this by passing a non-matching ID (0x000f0e00) so the driver
never probes. Either tpdm_datasets_setup() should read the dataset bits
from adev->periphid, or inaccessible TPDM nodes should use status = "fail".
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203145953.1889-1-26rote@gmail.com?part=1
next prev parent reply other threads:[~2026-12-03 15:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 14:59 [PATCH 0/2] Set the peripheral ID of the Kaanapali DCC TPDM Joonhoe Kim
2026-12-03 14:59 ` [PATCH 1/2] dt-bindings: arm: qcom,coresight-tpdm: Allow arm,primecell-periphid Joonhoe Kim
2026-12-03 15:22 ` sashiko-bot [this message]
2026-12-03 14:59 ` [PATCH 2/2] arm64: dts: qcom: kaanapali: Set the peripheral ID of the DCC TPDM Joonhoe Kim
2026-12-03 15:13 ` sashiko-bot
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=sashiko-outbox-248100@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=26rote@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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