From: James Clark <james.clark@linaro.org>
To: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>, suzuki.poulose@arm.com
Cc: mike.leach@arm.com, leo.yan@arm.com,
alexander.shishkin@linux.intel.com, coresight@lists.linaro.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] coresight: add missing MODULE_DEVICE_TABLE() for CTCU and TPDA
Date: Fri, 27 Nov 2026 13:02:03 +0000 [thread overview]
Message-ID: <6f997513-27da-47e5-83bb-18c267e930c6@linaro.org> (raw)
In-Reply-To: <20261127113137.931578-1-xiaqinghuan@mail.ustc.edu.cn>
On 27/11/2026 11:31, Qianhui Xu wrote:
> Hi,
>
> both the CTCU and the TPDA driver are matched through an ID table, but
> neither exports that table, so building them as modules produces a
> module without an "of:" / "amba:" modalias. udev cannot autoload such a
> module, and the device stays unbound until somebody loads it by hand.
>
> This was found on an SM8750 based phone (mainline v7.3.1,
> CONFIG_CORESIGHT_CTCU=m and CONFIG_CORESIGHT_TPDA=m):
>
> # lsmod | grep -c coresight_ctcu
> 0
> # modinfo -F alias coresight-ctcu
> (empty)
> # modprobe coresight-ctcu && readlink -f /sys/bus/platform/devices/10001000.ctcu/driver
> .../drivers/coresight-ctcu
>
> Five tpda devices behave the same way. With this series applied the
> modules carry "of:N*T*Cqcom,sa8775p-ctcu" and "amba:d???F0F??" aliases,
> and on the next boot both autoload with no modules-load.d help at all:
>
> # lsmod | grep -E 'coresight_(ctcu|tpda)'
> coresight_ctcu 16384 0
> coresight_tpda 24576 0
> # for f in /sys/bus/amba/devices/*; do [ -e $f/driver ] || n=$((n+1)); done; echo $n
> 0
>
> There is no functional change for built-in builds; MODULE_DEVICE_TABLE()
> is only used for module aliases.
>
> *** AI-assistance disclosure ***
> This series was prepared with the help of an LLM coding assistant. The
> author reviewed every line, reproduced the before/after behaviour on
> hardware and is responsible for the content.
>
> Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
>
> Qianhui Xu (2):
> coresight: ctcu: add missing MODULE_DEVICE_TABLE()
> coresight: tpda: add missing MODULE_DEVICE_TABLE()
>
> drivers/hwtracing/coresight/coresight-ctcu-core.c | 1 +
> drivers/hwtracing/coresight/coresight-tpda.c | 1 +
> 2 files changed, 2 insertions(+)
>
Could probably do with fixes: tags for both commits, but:
Reviewed-by: James Clark <james.clark@linaro.org>
prev parent reply other threads:[~2026-11-27 13:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 11:31 Qianhui Xu
2026-11-27 11:31 ` [PATCH 1/2] coresight: ctcu: add missing MODULE_DEVICE_TABLE() Qianhui Xu
2026-11-27 11:31 ` [PATCH 2/2] coresight: tpda: " Qianhui Xu
2026-11-27 13:02 ` 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=6f997513-27da-47e5-83bb-18c267e930c6@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=xiaqinghuan@mail.ustc.edu.cn \
/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®